{% import 'macros/form.html' as f with context %} {% if request.endpoint.endswith('new') %} {% set endpoint = 'admin.users_new' %} {% set form_kwargs = {} %} {% set legend = 'Add a new user' %} {% set button = 'Add' %} {% else %} {% set endpoint = 'admin.users_edit' %} {% set form_kwargs = {'id': user.id} %} {% set legend = 'Update this user' %} {% set button = 'Save' %} {% endif %}
{% call f.form_tag(endpoint, **form_kwargs) %} {{ legend }}

{{ user.email }}

{% call f.form_group(form.username, css_class='sm-margin-bottom', autofocus='autofocus') %} {% endcall %} {% call f.form_group(form.role, css_class='sm-margin-bottom') %} {% endcall %} {% call f.form_group(form.active) %} {% endcall %}
{% endcall %}

Login activity

Sign in count
{{ user.sign_in_count }}
Current sign in date
{% if user.current_sign_in_on %} {% endif %}
Current sign in IP address
{{ user.current_sign_in_ip }}
Previous sign in date
{% if user.last_sign_in_on %} {% endif %}
Previous sign in IP address
{{ user.last_sign_in_ip }}