{% from 'include/input_macros.html' import input, checkbox %} {% if not adding %} {% if page != "servers.py" %} {% endif %} {% endif %} {% for user in users %} {% if page != "servers.py" %} {% endif %} {% endfor %} {% if not adding %}
Login name Password Active Email RoleGroup
{% set login_id = 'login-' + user.0|string() %} {% if user.6 == 1%} {{ input(login_id, value=user.1, readonly='readonly') }} {% else %} {{ input(login_id, value=user.1) }} {% endif %} {% if user.6 != 1%} {% endif %} {% set activeuser_id = 'activeuser-' + user.0|string() %} {% if user.7 == 1 %} {{ checkbox(activeuser_id, checked='checked') }} {% else %} {{ checkbox(activeuser_id) }} {% endif %} {% set email_id = 'email-' + user.0|string() %} {% if user.6 == 1%} {{ input(email_id, value=user.2, readonly='readonly') }} {% else %} {{ input(email_id, value=user.2) }} {% endif %}

+ Add

{% endif %}