|
126 | 126 |
|
127 | 127 | if ($isPI) { |
128 | 128 | 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>"; |
131 | 131 | } else { |
132 | 132 | echo " |
133 | 133 | <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 |
135 | 135 | <strong>unable to use the cluster</strong>. |
136 | | - Go to the |
| 136 | + To become qualified, go to the |
137 | 137 | <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. |
139 | 139 | </p> |
140 | 140 | <p>Students should not request a PI account.</p> |
141 | 141 | "; |
|
167 | 167 | <input type='hidden' name='form_type' value='cancel_pi_request'/> |
168 | 168 | "; |
169 | 169 | } else { |
170 | | - echo "<input type='hidden' name='form_type' value='pi_request'/>"; |
171 | 170 | $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 | + "; |
173 | 184 | } |
174 | 185 | } |
175 | 186 | echo "</form>"; |
|
0 commit comments