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

@@ -5,7 +5,7 @@
{% block title 'Remove family membership'|trans %}
{% block personcontent %}
{% block content %}
{{ include('ChillMainBundle:Util:confirmation_template.html.twig',
{

View File

@@ -4,7 +4,7 @@
{% set title = 'Edit family members for %name%'|trans({ '%name%' : person.firstName ~ " " ~ person.lastName } ) %}
{% block title title %}
{% block personcontent %}
{% block content %}
<h1>{{ title }}</h1>
{{ form_start(form) }}

View File

@@ -88,7 +88,7 @@
{% import _self as m %}
{% block personcontent %}
{% block content %}
<h1>{{ title }}</h1>
{% if familyMembers|length == 0 %}

View File

@@ -4,7 +4,7 @@
{% set title = 'New family members for %name%'|trans({ '%name%' : person.firstName ~ " " ~ person.lastName } ) %}
{% block title title %}
{% block personcontent %}
{% block content %}
<h1>{{ title }}</h1>
{{ form_start(form) }}

View File

@@ -6,7 +6,7 @@
{% block title title %}
{% block personcontent %}
{% block content %}
<h1>{{ title }}</h1>
<dl class="chill_view_data">