uspot: Improve HTML for captive portal UI

Signed-off-by: Simon Kinane <skinane@fb.com>
This commit is contained in:
Simon Kinane
2022-09-14 16:00:57 +01:00
committed by John Crispin
parent 26be5ba20e
commit 956a31db8f
3 changed files with 20 additions and 11 deletions

View File

@@ -3,14 +3,18 @@ Content-Type: text/html
{{ header }} {{ header }}
{% if (error): %} {% if (error): %}
<h1> Invalid credentials </h1> <h2> Invalid credentials </h2>
{% endif %} {% endif %}
<form action="/hotspot" method="POST"> <form action="/hotspot" method="POST">
<label for="fname">Username:</label> <table>
<input type="text" name="username"><br> <tr><td><label for="fname">Username:</label></td>
<label for="fname">Password:</label> <td><input type="text" name="username"></td>
<input type="password" name="password"> </tr>
<tr><td><label for="fname">Password:</label></td>
<td><input type="password" name="password"></td>
</tr>
</table>
<input type="hidden" name="action" value="credentials"> <input type="hidden" name="action" value="credentials">
<input type="submit" value="Login" class="btn btn-primary btn-block"> <input type="submit" value="Login" class="btn btn-primary btn-block">
</form> </form>

View File

@@ -3,6 +3,7 @@ Content-Type: text/html
{{ header }} {{ header }}
<h1> An Error occured, please try again </h1> <h2> An Error occured </h2>
<h2> Please try again </h2>
{{ footer }} {{ footer }}

View File

@@ -3,14 +3,18 @@ Content-Type: text/html
{{ header }} {{ header }}
{% if (error): %} {% if (error): %}
<h1> Invalid credentials </h1> <h2> Invalid credentials </h2>
{% endif %} {% endif %}
<form action="/hotspot" method="POST"> <form action="/hotspot" method="POST">
<label for="fname">Username:</label> <table>
<input type="text" name="username"><br> <tr><td><label for="fname">Username:</label></td>
<label for="fname">Password:</label> <td><input type="text" name="username"></td>
<input type="password" name="password"> </tr>
<tr><td><label for="fname">Password:</label></td>
<td><input type="password" name="password"></td>
</tr>
</table>
<input type="hidden" name="action" value="radius"> <input type="hidden" name="action" value="radius">
<input type="submit" value="Login" class="btn btn-primary btn-block"> <input type="submit" value="Login" class="btn btn-primary btn-block">
</form> </form>