Download templates/users.html from Hydui/Bkl: direct link, hf CLI and curl.
- Browser
- Download file 812 Bytes
-
https://huggingface.co/spaces/Hydui/Bkl/resolve/main/templates/users.html
- Command line
-
hf download hf://spaces/Hydui/Bkl/templates/users.html
-
curl -L -o users.html https://huggingface.co/spaces/Hydui/Bkl/resolve/main/templates/users.html
812 Bytes
| {% extends "base.html" %}{% block content %} | |
| <h1>Users</h1> | |
| <div class="card"> | |
| <form method="post" class="form-grid"> | |
| <input name="email" type="email" placeholder="Email" required> | |
| <input name="password" type="password" placeholder="Password" required> | |
| <select name="role"><option value="user">User</option><option value="admin">Admin</option></select> | |
| <button>Add User</button> | |
| </form> | |
| </div> | |
| <div class="card table-wrap"><table><tr><th>Email</th><th>Role</th><th>Status</th><th>Action</th></tr> | |
| {% for u in users %}<tr><td>{{u.email}}</td><td>{{u.role}}</td><td>{{"Active" if u.active else "Disabled"}}</td><td><form method="post" action="{{url_for('toggle_user',user_id=u.id)}}"><button class="small">{{"Disable" if u.active else "Enable"}}</button></form></td></tr>{% endfor %} | |
| </table></div> | |
| {% endblock %} | |