uspot: Improve HTML for captive portal UI

This commit is contained in:
Simon Kinane
2022-09-14 16:00:57 +01:00
committed by John Crispin
parent 26be5ba20e
commit 12e5efcda4
3 changed files with 20 additions and 11 deletions

View File

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

View File

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

View File

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