{%- extends "_layout.html" %} {%- block content %}

{{ hawat_view_title }} {%- if item_action == 'create' or current_user.has_role('admin') %}
{{ form.login.label }} {{ form.login(class_='form-control') }} {{ macros_site.form_errors(form.login.errors) }}
{%- elif item_action == 'update' %}

{{ item.login }}

{%- endif %}
{{ form.fullname.label }} {{ form.fullname(class_='form-control') }} {{ macros_site.form_errors(form.fullname.errors) }}
{{ form.email.label }} {{ form.email(class_='form-control') }} {{ macros_site.form_errors(form.email.errors) }}
{{ form.organization.label }} {{ form.organization(class_='form-control') }} {{ macros_site.form_errors(form.organization.errors) }}
{{ macros_site.form_errors(form.csrf_token.errors) }} {{ form.csrf_token }} {{ form.cancel(class_='btn btn-default') }} {{ form.submit(class_='btn btn-primary') }}
{%- if item %}
{{ item | pprint }}
{%- endif %} {% endblock content %}