{% extends "base.html" %} {% block title %}{{ "ویرایش حساب" if user else "افزودن حساب جدید" }} — {{ APP_NAME }}{% endblock %} {% block content %}
{{ form.hidden_tag() }}
{{ form.username.label }} {{ form.username(disabled=(user is not none)) }} {% if user %}{% endif %}
{{ form.full_name.label }} {{ form.full_name() }}
{{ form.password() }}
{{ form.role.label }} {{ form.role(disabled=(is_self is defined and is_self), id="role-select") }} {% if is_self is defined and is_self %}{% endif %}
{% if is_self is defined and is_self %}{% endif %}
{% for subfield in form.permissions %} {% endfor %}
{% endblock %}