{% extends "layout.html" %} {% from "macros/form_inputs.html" import input_submit, input_csrf_token with context %} {% from "macros/general.html" import display_random_password, display_preferred_language, display_add_admin, with context %} {% from "macros/msg_handlers.html" import admin_msg_handler with context %} {% block navlinks_create %}class="active"{% endblock %} {% block title %}{{ _('Add admin') }}{% endblock title %} {% block main %} {# Show system message #} {% if msg %} {% if msg.startswith('PW_') %} {% set _pw_errors = msg.split(',') %} {% for _err in _pw_errors %} {{ admin_msg_handler(_err) }} {% endfor %} {% else %} {{ admin_msg_handler(msg) }} {% endif %} {% endif %}