Commit 6a7a67c3 authored by Imran Hussain's avatar Imran Hussain
Browse files

Tweak login form(s) to have a better UX

parent 7b94ed9a
......@@ -132,7 +132,7 @@ if ( isset($_POST["username"]) && isset($_POST["password"]) && !$RATELIMITED ) {
<div class="h-100 container justify-content-center text-center">
<div class="h-100 row d-flex justify-content-center align-items-center">
<div class="col-8">
<div class="card mb-4">
<div class="card mb-4 mt-4">
<?php
......@@ -155,12 +155,24 @@ if ($RATELIMITED) {
print('
<div class="card-body">
<h4 class="card-title">🔑</h4>
<p class="card-text">Hello stranger!</p>
<p class="card-text">Hello stranger! Try your SUCS Login</p>
<form method="post">
<div class="form-group">
<input type="text" name="username" size="15" class="form-control" placeholder="Enter SUCS or ISS username" /><br />
<input type="text" name="username" size="15" class="form-control" placeholder="Enter SUCS username" /><br />
<input type="password" name="password" size="15" class="form-control" placeholder="Enter password" /><br />
<input type="submit" class="btn btn-primary" value="SUCS Login" />
</div>
</form>
</div>
</div>
<div class="card mb-4">
<div class="card-body">
<h4 class="card-title">🔑</h4>
<p class="card-text">Hello stranger! Try your ISS Login</p>
<form method="post">
<div class="form-group">
<input type="text" name="username" size="15" class="form-control" placeholder="Enter ISS username (student number)" /><br />
<input type="password" name="password" size="15" class="form-control" placeholder="Enter password" /><br />
<input type="submit" class="btn btn-primary" value="ISS Login" />
</div>
</form>
......@@ -180,7 +192,6 @@ if ($RATELIMITED) {
<div class="form-group">
<input type="text" name="username" size="15" class="form-control" placeholder="Enter ISS username" /><br />
<input type="password" name="password" size="15" class="form-control" placeholder="Enter password" /><br />
<input type="submit" class="btn btn-primary" value="SUCS Login" disabled/>
<input type="submit" class="btn btn-primary" value="ISS Login" />
</div>
</form>
......@@ -202,7 +213,6 @@ if ($RATELIMITED) {
<input type="text" name="username" size="15" class="form-control" placeholder="Enter SUCS username" /><br />
<input type="password" name="password" size="15" class="form-control" placeholder="Enter password" /><br />
<input type="submit" class="btn btn-primary" value="SUCS Login" />
<input type="submit" class="btn btn-primary" value="ISS Login" disabled/>
</div>
</form>
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment