change block personcontent to content more consistent with other templates and less need for if-statements

This commit is contained in:
2022-02-24 15:58:02 +01:00
parent f8ec0f85e5
commit c4e0b68ebe
64 changed files with 66 additions and 73 deletions

View File

@@ -20,7 +20,7 @@
{% block title %}{{ 'Report edit' |trans }}{% endblock title %}
{% block personcontent %}
{% block content %}
{{ form_start(edit_form) }}
{{ form_row(edit_form.user) }}

View File

@@ -20,7 +20,7 @@
{% block title %}{{ 'Report list' |trans }}{% endblock title %}
{% block personcontent %}
{% block content %}
<h1>{{ 'Report list'|trans }}</h1>

View File

@@ -20,7 +20,7 @@
{% block title %}{{ 'Add a report'|trans }}{% endblock title %}
{% block personcontent %}
{% block content %}
{{ form_start(form) }}
{{ form_row(form.user) }}

View File

@@ -20,7 +20,7 @@
{% block title %}{{ 'Add a report'|trans() }}{% endblock title %}
{% block personcontent %}
{% block content %}
{{ form_start(form) }}
{{ form_widget(form.cFGroup) }}

View File

@@ -20,7 +20,7 @@
{% block title %}{{ 'Report view' |trans() }}{% endblock title %}
{% block personcontent %}
{% block content %}
<h1>{{ 'Report view : %name%' | trans({ '%name%' : entity.cFGroup.getName|localize_translatable_string } ) }}</h1>