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 %}{{ 'Update details for %name%'|trans({ '%name%': person|chill_entity_render_string } ) }}{% endblock %}
{% block personcontent %}
{% block content %}
<div class="person-edit">
<h1>{{ block('title') }}</h1>

View File

@@ -84,7 +84,7 @@
</div>
{% endmacro %}
{% block personcontent %}
{% block content %}
<div class="person-household">
<h1>{{ 'household.Household history'|trans }}</h1>

View File

@@ -25,7 +25,7 @@
{% block layout_wvm_content %}
<div class="row justify-content-center">
<div class="col-md-10 col-xxl">
{% block personcontent %}{# block personcontent empty #}{% endblock %}
{% block content %}{# block content empty #}{% endblock %}
</div>
</div>
{% endblock %}

View File

@@ -32,7 +32,7 @@ This view should receive those arguments:
{% set edit_tmp_args = { 'form_path_args' : { 'person_id': person.id },
'form_path_key' : 'chill_person_general_edit' } %}
{% block personcontent %}
{% block content %}
<div class="person-view">
<div class="row">