|
132 | 132 |
|
133 | 133 | if ($isPI) { |
134 | 134 | 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>"; |
137 | 137 | } else { |
138 | 138 | echo " |
139 | 139 | <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 |
141 | 141 | <strong>unable to use the cluster</strong>. |
142 | | - Go to the |
| 142 | + To become qualified, go to the |
143 | 143 | <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. |
145 | 145 | </p> |
146 | 146 | <p>Students should not request a PI account.</p> |
147 | 147 | "; |
|
173 | 173 | <input type='hidden' name='form_type' value='cancel_pi_request'/> |
174 | 174 | "; |
175 | 175 | } else { |
176 | | - echo "<input type='hidden' name='form_type' value='pi_request'/>"; |
177 | 176 | $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 | + "; |
179 | 190 | } |
180 | 191 | } |
181 | 192 | echo "</form>"; |
|
0 commit comments