Skip to content

Commit 46f41ae

Browse files
committed
wording
1 parent d705428 commit 46f41ae

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

webroot/panel/account.php

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,16 @@
126126

127127
if ($isPI) {
128128
echo "<p>You are curently a <strong>principal investigator</strong> on the Unity Cluster</p>";
129-
} elseif ($hasGroups) {
130-
echo "<p>You are curently a <strong>user</strong> on the Unity Cluster</p>";
129+
} elseif ($USER->isQualified()) {
130+
echo "<p>You are curently a <strong>qualified user</strong> on the Unity Cluster</p>";
131131
} else {
132132
echo "
133133
<p>
134-
You are currently not assigned to any PI, and will be
134+
You are currently an <strong>unqualified user</strong>, and will be
135135
<strong>unable to use the cluster</strong>.
136-
Go to the
136+
To become qualified, go to the
137137
<a href='groups.php'>My PIs</a>
138-
page to join a PI, or click on the button below if you are a PI.
138+
page to join a PI group, or click on the button below if you are a PI.
139139
</p>
140140
<p>Students should not request a PI account.</p>
141141
";
@@ -167,9 +167,20 @@
167167
<input type='hidden' name='form_type' value='cancel_pi_request'/>
168168
";
169169
} else {
170-
echo "<input type='hidden' name='form_type' value='pi_request'/>";
171170
$prompt = "onclick='return confirm(\"Are you sure you want to request a PI account?\")";
172-
echo "<input type='submit' value='Request PI Account' $prompt'/>";
171+
$account_policy_url = CONFIG["site"]["account_policy_url"];
172+
echo "
173+
<div style='position: relative;display: none;' id='piConfirmWrapper'>
174+
<label>
175+
<input type='checkbox' id='chk_pi' name='confirm_pi' value='agree'>
176+
I have read the PI
177+
<a href='$account_policy_url'> account policy</a>
178+
guidelines.
179+
</label>
180+
</div>
181+
<input type='hidden' name='form_type' value='pi_request'/>
182+
<input type='submit' value='Request PI Account' $prompt/>
183+
";
173184
}
174185
}
175186
echo "</form>";

0 commit comments

Comments
 (0)