A website for producing interactive charts without writing a single line of code. Built with Common Lisp and Python.
https://charts.craigoates.net
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.2 KiB
44 lines
1.2 KiB
{% extends "layouts/base.html" %} |
|
{% block title %}Craig Oates: Add New User{% endblock %} |
|
|
|
{% block content %} |
|
|
|
{% if roles.logged-in %} |
|
<div class="logged-in-options"> |
|
<a class="ui-link-admin" href="/users">Manage</a> |
|
</div> |
|
{% endif %} |
|
|
|
<h1>Add User</h1> |
|
|
|
<p class="ui-message-warning">The username can not be changed after the account has been created.</p> |
|
|
|
<div class="ui-form"> |
|
<form class="ui-form-add" action="/user" method="post"> |
|
<input required type="hidden" name="AUTHENTICITY-TOKEN" value="{{token}}"> |
|
<input required type="hidden" name="METHOD" value="add"> |
|
|
|
<fieldset> |
|
<legend>User Details</legend> |
|
<label>Username</label> |
|
<input type="text" name="USERNAME"> |
|
|
|
<label>Display Name</label> |
|
<input required type="text" name="DISPLAY-NAME"> |
|
|
|
<label>Password</label> |
|
<input required type="password" name="PASSWORD"> |
|
</fieldset> |
|
|
|
<fieldset class="ui-form-checkbox-fieldset"> |
|
<legend>User Privileges</legend> |
|
<div> |
|
<input type="checkbox" name="ADMINISTRATOR"> |
|
<label>Administrator</label> |
|
</div> |
|
</fieldset> |
|
|
|
<input class="ui-button-add" type="submit" value="Add User"/> |
|
</form> |
|
</div> |
|
{% endblock %}
|
|
|