Skip to content

Commit 595b583

Browse files
committed
wording
1 parent 31d0221 commit 595b583

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
@@ -132,16 +132,16 @@
132132

133133
if ($isPI) {
134134
echo "<p>You are curently a <strong>principal investigator</strong> on the Unity Cluster</p>";
135-
} elseif ($hasGroups) {
136-
echo "<p>You are curently a <strong>user</strong> on the Unity Cluster</p>";
135+
} elseif ($USER->isQualified()) {
136+
echo "<p>You are curently a <strong>qualified user</strong> on the Unity Cluster</p>";
137137
} else {
138138
echo "
139139
<p>
140-
You are currently not assigned to any PI, and will be
140+
You are currently an <strong>unqualified user</strong>, and will be
141141
<strong>unable to use the cluster</strong>.
142-
Go to the
142+
To become qualified, go to the
143143
<a href='groups.php'>My PIs</a>
144-
page to join a PI, or click on the button below if you are a PI.
144+
page to join a PI group, or click on the button below if you are a PI.
145145
</p>
146146
<p>Students should not request a PI account.</p>
147147
";
@@ -173,9 +173,20 @@
173173
<input type='hidden' name='form_type' value='cancel_pi_request'/>
174174
";
175175
} else {
176-
echo "<input type='hidden' name='form_type' value='pi_request'/>";
177176
$prompt = "onclick='return confirm(\"Are you sure you want to request a PI account?\")";
178-
echo "<input type='submit' value='Request PI Account' $prompt'/>";
177+
$account_policy_url = CONFIG["site"]["account_policy_url"];
178+
echo "
179+
<div style='position: relative;display: none;' id='piConfirmWrapper'>
180+
<label>
181+
<input type='checkbox' id='chk_pi' name='confirm_pi' value='agree'>
182+
I have read the PI
183+
<a href='$account_policy_url'> account policy</a>
184+
guidelines.
185+
</label>
186+
</div>
187+
<input type='hidden' name='form_type' value='pi_request'/>
188+
<input type='submit' value='Request PI Account' $prompt/>
189+
";
179190
}
180191
}
181192
echo "</form>";

0 commit comments

Comments
 (0)