mirror of
https://github.com/boringproxy/boringproxy.git
synced 2025-02-25 18:55:29 -06:00
The UI was originally written using fancy HTML checkbox toggle hacks in order to make the UI very fast. It's cool but complicated and difficult to change. In order to make updates to the UI more quickly, I'm changing it to use traditional HTML with full page reloads for navigation. It's not as fast but much simpler.
22 lines
657 B
Cheetah
22 lines
657 B
Cheetah
{{ template "header.tmpl" . }}
|
|
<div class='list'>
|
|
{{range $username, $user := .Users}}
|
|
<div class='list-item'>
|
|
{{$username}}
|
|
<a href="/confirm-delete-user?username={{$username}}">
|
|
<button class='button'>Delete</button>
|
|
</a>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
<div class='user-adder'>
|
|
<form action="/users" method="POST">
|
|
<label for="username">Username:</label>
|
|
<input type="text" id="username" name="username" required>
|
|
<label for="is-admin">Is Admin:</label>
|
|
<input type="checkbox" id="is-admin" name="is-admin">
|
|
<button class='button' type="submit">Add User</button>
|
|
</form>
|
|
</div>
|
|
{{ template "footer.tmpl" . }}
|