26 lines
871 B
HTML
26 lines
871 B
HTML
{% extends "base.html" %}
|
|
{% block title %}Update User{% endblock %}
|
|
|
|
{% block content_title %}Update User{% endblock %}
|
|
{% block content_description %}Update given user account{% endblock %}
|
|
|
|
{% block content %}
|
|
<form method="post">
|
|
{{ form.hidden_tag() }}
|
|
{% for field in form %}
|
|
<div class="form-group">
|
|
{{ field.label }}
|
|
{{ field(class="form-control", disabled=true) if field.name in ['email', 'user_name'] else field(class="form-control") }}
|
|
{% if field.errors %}
|
|
<div class="alert alert-danger">
|
|
{% for error in field.errors %}
|
|
<p>{{ error }}</p>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% endfor %}
|
|
<button type="submit" class="btn btn-primary">Update User</button>
|
|
</form>
|
|
{% endblock %}
|