{#- One account, or a new one: who it is, what it does and where, what it may do (sign in at all, run the site) and its password; beside it, its communities and its last sign-ins. Signing in as the person is in sight. Overrides Abilian Core's page; drawn in `mockups/templates/admin-user.html`. -#} {% extends "admin/_ads.html" %} {% import "admin/_ads_macros.html" as a with context %} {% import "forum/_post_fields.html" as fields %} {% set user = view.obj %} {% set creating = not user.id %} {% block page_title %}{{ _("New account") if creating else user.name }} · {{ _("Accounts") }} · {{ _("Administration") }}{% endblock %} {% block heading %}{% if creating %}{{ _("New account") }}{% else %}{{ m.avatar(user) }}{{ user.name }}{{ a.state(user) }}{% endif %}{% endblock %} {% block actions %}{% if not creating and user.can_login and user != current_user %}{{ a.sign_in_as(user) }}{% endif %}{% endblock %} {#- A field, with what it says under it only when that helps: not Core's "ex: John". -#} {% macro input(field, type="text", label=none, autocomplete=none, help=false) %} {% set described = ([field.id ~ "-help"] if help else []) + ([field.id ~ "-error"] if field.errors else []) %}