{% extends "base.html" %} {% from "components/ui.html" import breadcrumb, card, csrf_field with context %} {% from "components/grants.html" import grant_editor, service_editor %} {% block title %}New role ยท {{ APP_NAME }}{% endblock %} {% block heading %}New role{% endblock %} {% block subheading %}{{ breadcrumb([("Roles", "/ui/roles"), ("New role", None)]) }}{% endblock %} {% block content %} {% call card("Start from", meta="A template fills the form. Nothing is stored until you create the role, and every field can be changed.") %} {% endcall %}
{{ csrf_field() }} {% if chosen %}{% endif %} {% call card("Role", meta=("From the template " ~ chosen.title ~ (". Name the recipients before you create it" if chosen.recipients_required else "") ~ ".") if chosen else None) %}
Cannot be changed later.
{% endcall %} {% call card("Service rights", meta="You can hand out only rights you hold yourself.") %} {{ service_editor(service, service_names, service_ops) }} {% endcall %} {% call card("Grants", meta="Rights on accounts.") %} {{ grant_editor(rows, account_choices, groups, group_ops) }} {% endcall %}
Cancel
{% endblock %}