{#- A dashboard's create and edit page for one role: the project's base.html around the shared role form. Context from RoleManagementFlow: form, role (None when creating), action, roles_url. -#} {% extends "base.html" %} {% from "oldman/dashboard/components/page_head.html" import page_head with context %} {% block title %}{{ _("New Role") if role is none else _("Edit Role") }} ยท {{ site_name() }}{% endblock %} {% block content %}
{% call page_head(_("New Role") if role is none else _("Edit Role")) %} {{ _("Roles") }} {% endcall %}
{{ form.render( action=action, cancel_url=roles_url, form_mode="json", validate=True, feedback_target="#roles-form-feedback" ) }}
{% endblock %}