refactored permission templates to match controller (#2391)

This commit is contained in:
Kevin Papst
2021-03-03 11:31:29 +01:00
committed by GitHub
parent 5a90b36734
commit adf8c09fd4
6 changed files with 25 additions and 11 deletions

View File

@@ -0,0 +1,17 @@
{% extends 'base.html.twig' %}
{% block page_title %}{{ 'admin_user.title'|trans }}{% endblock %}
{% block main %}
{% set formEditTemplate = app.request.xmlHttpRequest ? 'default/_form_modal.html.twig' : 'default/_form.html.twig' %}
{% set formOptions = {
'title': 'create'|trans,
'form': form,
'back': path('admin_user')
} %}
{% embed formEditTemplate with formOptions %}
{% block form_body %}
{{ form_widget(form) }}
{% endblock %}
{% endembed %}
{% endblock %}