{% extends "base.html" %} {% from "components/ui.html" import breadcrumb, card, csrf_field with context %} {% from "components/grants.html" import grant_editor, role_checks %} {% block title %}New user ยท {{ APP_NAME }}{% endblock %} {% block heading %}New user{% endblock %} {% block subheading %}{{ breadcrumb([("Users", "/ui/users"), ("New user", None)]) }}{% endblock %} {% block content %}
{{ csrf_field() }} {% call card("User", meta="A user acts with its roles and grants. It signs in to the UI with a password, and to the API with a token.") %}
{% set to_ui = typed and typed.signs_in_to == "ui" %} Signs in to {% if can_set_password %}{% endif %}
{% if role_choices %}{{ role_checks(role_choices, typed.roles if typed else []) }}{% endif %} {% endcall %} {% call card("Grants", meta="You can hand out only rights you hold yourself.") %} {{ grant_editor(rows, account_choices, groups, group_ops) }} {% endcall %}
Cancel
{% endblock %}