38 lines
1.7 KiB
HTML
38 lines
1.7 KiB
HTML
|
{% extends 'base.html' %}
|
||
|
|
||
|
{% block header %}
|
||
|
<h1>{% block title %}Edit User{% endblock %}</h1>
|
||
|
{% endblock %}
|
||
|
|
||
|
{% block content %}
|
||
|
<form method="post">
|
||
|
<label for="fullname">Fullname ({{ user['fullname'] }})</label>
|
||
|
<input name="fullname" id="fullname"
|
||
|
value="{{ request.form['fullname'] or user['fullname'] }}" required>
|
||
|
<label for="username">Username ({{ user['username'] }})</label>
|
||
|
<input name="username" id="username"
|
||
|
value="{{ request.form['username'] or user['username'] }}" required>
|
||
|
<label for="password">Password</label>
|
||
|
<input type="password" name="password" id="password"
|
||
|
value="" required>
|
||
|
<label for="email">Email: ({{ user['email'] }})</label>
|
||
|
<input name="email" id="email"
|
||
|
value="{{ request.form['email'] or user['email'] }}" required>
|
||
|
<label for="principals">Principals: ({{ user['principals'] }})</label>
|
||
|
<input name="principals" id="principals"
|
||
|
value="{{ request.form['principals'] or user['principals'] }}">
|
||
|
<label for="allowed_commands">Allowed commands: ({{ user['allowed_commands'] }})</label>
|
||
|
<input name="allowed_commands" id="allowed_commands"
|
||
|
value="{{ request.form['allowed_commands'] or user['allowed_commands'] }}">
|
||
|
<label for="client_from">Client from: ({{ user['client_from'] }})</label>
|
||
|
<input name="client_from" id="client_from"
|
||
|
value="{{ request.form['client_from'] or user['client_from'] }}">
|
||
|
<label for="capabilities">Capabilities: ({{ user['capabilities'] }})</label>
|
||
|
<input name="capabilities" id="capabilities"
|
||
|
value="{{ request.form['capabilities'] or user['capabilities'] }}">
|
||
|
<input type="submit" value="Save">
|
||
|
</form>
|
||
|
<hr>
|
||
|
|
||
|
{% endblock %}
|