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 task'|trans %}
{% block personcontent %}
{% block content %}
{{ include('@ChillMain/Util/confirmation_template.html.twig',
{

View File

@@ -23,7 +23,7 @@
{{ 'Edit task'|trans }}
{% endblock %}
{% block personcontent %}
{% block content %}
{% include '@ChillTask/SingleTask/_edit.html.twig' %}

View File

@@ -4,7 +4,7 @@
{% block title 'Tasks for {{ name }}'|trans({ '{{ name }}' : person|chill_entity_render_string }) %}
{% block personcontent %}
{% block content %}
<div class="col-md-10 col-xxl">
<h1>{{ block('title') }}</h1>

View File

@@ -24,7 +24,7 @@
{% endblock %}
{% block personcontent %}
{% block content %}
{% include '@ChillTask/SingleTask/_new.html.twig' %}
{% endblock %}

View File

@@ -25,7 +25,7 @@
{% endblock %}
{% block personcontent %}
{% block content %}
{% include '@ChillTask/SingleTask/_show.html.twig' %}

View File

@@ -5,7 +5,7 @@
{% block title 'Remove task'|trans %}
{% block personcontent %}
{% block content %}
{% include '@ChillTask/SingleTask/_transition.html.twig' %}

View File

@@ -29,7 +29,7 @@
{% block filtertasks %}
{% if person is not null %}
{% block personcontent %}
{% block content %}
<div class="tasks">
{% include '@ChillTask/SingleTask/Person/list.html.twig' %}