summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/auth/edit_user.html
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/templates/auth/edit_user.html')
-rw-r--r--ogcp/templates/auth/edit_user.html54
1 files changed, 5 insertions, 49 deletions
diff --git a/ogcp/templates/auth/edit_user.html b/ogcp/templates/auth/edit_user.html
index 3b10508..42ba5aa 100644
--- a/ogcp/templates/auth/edit_user.html
+++ b/ogcp/templates/auth/edit_user.html
@@ -1,53 +1,9 @@
-{% extends 'users.html' %}
-{% import "bootstrap/wtf.html" as wtf %}
+{% extends 'auth/user_form.html' %}
-{% set sidebar_state = 'disabled' %}
-{% set btn_back = true %}
+{% block subhead_heading %}{{_('Edit user {}').format(form.username.data)}}{% endblock %}
-{% block nav_user_edit %}active{% endblock %}
-{% block content %}
+{% block form_action %}{{ url_for('user_edit_post') }}{% endblock %}
-<h1 class="m-5">{{_('Edit user {}').format(form.username.data)}}</h1>
+{% block pwd_field %}<input type="password" name="pwd" class="form-control" placeholder="{{ _('Leave blank if not changing') }}">{% endblock %}
-<form action="{{ url_for('user_edit_post') }}" method="post" class="form">
- {{ form.hidden_tag() }}
-
- <div class="form-group">
- {{ form.username.label(class_='form-label') }}
- {{ form.username(class_='form-control') }}
- </div>
-
- <div class="form-group">
- {{ form.pwd.label(class_='form-label') }}
- <input type="password" name="pwd" class="form-control" placeholder="{{ _('Leave blank if not changing') }}">
- </div>
-
- <div class="form-group">
- {{ form.pwd_confirm.label(class_='form-label') }}
- <input type="password" name="pwd_confirm" class="form-control" placeholder="{{ _('Leave blank if not changing') }}">
- </div>
-
- <div class="form-group form-check">
- {{ form.admin(class_='form-check-input') }}
- {{ form.admin.label(class_='form-check-label') }}
- </div>
-
- <div class="form-group">
- {{ form.scopes.label(class_='form-label') }}
- <div class="form-text text-muted">{{ form.scopes.description }}</div>
- <div>
- {% for value, label, checked in form.scopes.iter_choices() %}
- <div class="form-check">
- <input class="form-check-input" type="checkbox" name="{{ form.scopes.name }}" value="{{ value }}" {% if checked %} checked {% endif %}>
- <label class="form-check-label">{{ label }}</label>
- </div>
- {% endfor %}
- </div>
- </div>
-
- <div class="form-group">
- {{ form.submit_btn(class_='btn btn-primary') }}
- </div>
-</form>
-
-{% endblock %}
+{% block pwd_confirm_field %}<input type="password" name="pwd_confirm" class="form-control" placeholder="{{ _('Leave blank if not changing') }}">{% endblock %}