Skip to content

Commit ce49c05

Browse files
authored
prettier unqualified page (#364)
1 parent 86ca88e commit ce49c05

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

webroot/panel/account.php

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,26 @@
126126
} elseif ($USER->isQualified()) {
127127
echo "<p>You are curently a <strong>qualified user</strong> on the Unity Cluster</p>";
128128
} else {
129+
$tos_url = CONFIG["site"]["terms_of_service_url"];
130+
$sitePrefix = CONFIG["site"]["prefix"];
129131
echo "
130132
<p>
131133
You are currently an <strong>unqualified user</strong>, and will be
132134
<strong>unable to use the cluster</strong>.
133-
To become qualified, go to the
134-
<a href='groups.php'>My PIs</a>
135-
page to join a PI, or click on the button below if you are a PI.
136-
Do not click the button below if you are a student.
135+
To become qualified, request to join a PI group, or if you are a PI, request a PI group.
136+
Do not request a PI group if you are a student.
137137
</p>
138+
<br>
139+
<form action='$sitePrefix/panel/groups.php' method='GET'>
140+
<label>
141+
<input type='checkbox' name='tos' value='agree' required />
142+
I have read and accept the
143+
<a target='_blank' href='$tos_url'>Terms of Service</a>.
144+
</label>
145+
<br>
146+
<input type='submit' value='Request to Join a PI Group' />
147+
</form>
148+
<br>
138149
";
139150
}
140151

@@ -180,7 +191,7 @@
180191
</label>
181192
<br>
182193
<input type='hidden' name='form_type' value='pi_request'/>
183-
<input type='submit' value='Request PI Account' onclick='$onclick'/>
194+
<input type='submit' value='Request a PI Group' onclick='$onclick'/>
184195
";
185196
}
186197
}

0 commit comments

Comments
 (0)