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

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

View File

@ -32,7 +32,7 @@ Then, render the pagination using the dedicated twig function.
{% block title 'Item list'|trans %} {% block title 'Item list'|trans %}
{% block personcontent %} {% block content %}
<table> <table>

View File

@ -156,7 +156,7 @@ This layout extend `ChillMainBundle::layoutWithVerticalMenu.html.twig` add the p
It proposes 1 new block : It proposes 1 new block :
* personcontent * content
* where to display the information of the person * where to display the information of the person

View File

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

View File

@ -20,7 +20,7 @@
{% block title 'Update activity'|trans %} {% block title 'Update activity'|trans %}
{% block personcontent %} {% block content %}
<div class="activity-edit"> <div class="activity-edit">
<div id="activity"></div> {# <=== vue component #} <div id="activity"></div> {# <=== vue component #}

View File

@ -30,7 +30,7 @@
{{ encore_entry_link_tags('mod_notification_toggle_read_status') }} {{ encore_entry_link_tags('mod_notification_toggle_read_status') }}
{% endblock %} {% endblock %}
{% block personcontent %} {% block content %}
{% set person_id = null %} {% set person_id = null %}
{% if person %} {% if person %}

View File

@ -4,7 +4,7 @@
{% block title 'Activity creation' |trans %} {% block title 'Activity creation' |trans %}
{% block personcontent %} {% block content %}
<div class="activity-new"> <div class="activity-new">
<div id="activity"></div> {# <=== vue component #} <div id="activity"></div> {# <=== vue component #}

View File

@ -4,6 +4,6 @@
{% block title 'Activity creation'|trans %} {% block title 'Activity creation'|trans %}
{% block personcontent %} {% block content %}
{% include 'ChillActivityBundle:Activity:selectType.html.twig' %} {% include 'ChillActivityBundle:Activity:selectType.html.twig' %}
{% endblock %} {% endblock %}

View File

@ -18,11 +18,11 @@
{% import 'ChillActivityBundle:ActivityReason:macro.html.twig' as m %} {% import 'ChillActivityBundle:ActivityReason:macro.html.twig' as m %}
{% block personcontent -%} {% block content -%}
<div class="activity-show"> <div class="activity-show">
{% include 'ChillActivityBundle:Activity:show.html.twig' with {'context': 'person'} %} {% include 'ChillActivityBundle:Activity:show.html.twig' with {'context': 'person'} %}
</div> </div>
{% endblock personcontent %} {% endblock %}
{% block block_post_menu %} {% block block_post_menu %}
<div class="post-menu pt-4"> <div class="post-menu pt-4">

View File

@ -25,7 +25,7 @@
{% endblock %} {% endblock %}
{% block layout_wvm_content %} {% block layout_wvm_content %}
{% block admin_content %}<!-- block personcontent empty --> {% block admin_content %}<!-- block content empty -->
<h1>{{ 'Activity configuration' |trans }}</h1> <h1>{{ 'Activity configuration' |trans }}</h1>
{% endblock %} {% endblock %}
{% endblock %} {% endblock %}

View File

@ -6,7 +6,7 @@
{% block layout_wvm_content %} {% block layout_wvm_content %}
{% block admin_content %} {% block admin_content %}
<!-- block personcontent empty --> <!-- block content empty -->
<h1>{{ 'Aside activity configuration'|trans }}</h1> <h1>{{ 'Aside activity configuration'|trans }}</h1>
{% endblock %} {% endblock %}
{% endblock %} {% endblock %}

View File

@ -25,7 +25,7 @@
{% endblock %} {% endblock %}
{% block layout_wvm_content %} {% block layout_wvm_content %}
{% block admin_content %}<!-- block personcontent empty --> {% block admin_content %}<!-- block content empty -->
<h1>{{ 'CustomFields configuration' |trans }}</h1> <h1>{{ 'CustomFields configuration' |trans }}</h1>
{% endblock %} {% endblock %}
{% endblock %} {% endblock %}

View File

@ -24,22 +24,15 @@ class PersonDocument extends Document implements HasCenterInterface, HasScopeInt
{ {
/** /**
* @ORM\ManyToOne(targetEntity="Chill\PersonBundle\Entity\Person") * @ORM\ManyToOne(targetEntity="Chill\PersonBundle\Entity\Person")
*
* @var Person
*/ */
private $person; private Person $person;
public function getCenter() public function getCenter()
{ {
return $this->getPerson()->getCenter(); return $this->getPerson()->getCenter();
} }
/** public function getPerson(): Person
* Get person.
*
* @return \Chill\MainBundle\Entity\Person
*/
public function getPerson()
{ {
return $this->person; return $this->person;
} }

View File

@ -25,7 +25,7 @@
{% endblock %} {% endblock %}
{% block layout_wvm_content %} {% block layout_wvm_content %}
{% block admin_content %}<!-- block personcontent empty --> {% block admin_content %}<!-- block content empty -->
<h1>{{ 'Documents configuration' |trans }}</h1> <h1>{{ 'Documents configuration' |trans }}</h1>
{% endblock %} {% endblock %}
{% endblock %} {% endblock %}

View File

@ -20,7 +20,7 @@
{% set activeRouteKey = '' %} {% set activeRouteKey = '' %}
{% block title %}{{ 'Editing document for %name%'|trans({ '%name%': person|chill_entity_render_string } ) }}{% endblock %} {% block title %}{{ 'Editing document for %name%'|trans({ '%name%': person|chill_entity_render_string } ) }}{% endblock %}
{% block personcontent %} {% block content %}
<h1>{{ 'Edit Document' | trans }}</h1> <h1>{{ 'Edit Document' | trans }}</h1>
{{ form_errors(form) }} {{ form_errors(form) }}

View File

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

View File

@ -22,7 +22,7 @@
{{ 'New document for %name%'|trans({ '%name%': person|chill_entity_render_string } ) }} {{ 'New document for %name%'|trans({ '%name%': person|chill_entity_render_string } ) }}
{% endblock %} {% endblock %}
{% block personcontent %} {% block content %}
<h1>{{ 'New document for %name%'|trans({ '%name%': person|chill_entity_render_string } ) }}</h1> <h1>{{ 'New document for %name%'|trans({ '%name%': person|chill_entity_render_string } ) }}</h1>
{{ form_errors(form) }} {{ form_errors(form) }}

View File

@ -27,7 +27,7 @@
{{ encore_entry_script_tags('mod_async_upload') }} {{ encore_entry_script_tags('mod_async_upload') }}
{% endblock %} {% endblock %}
{% block personcontent %} {% block content %}
<h1>{{ 'Document %title%' | trans({ '%title%': document.title }) }}</h1> <h1>{{ 'Document %title%' | trans({ '%title%': document.title }) }}</h1>
{{ mm.mimeIcon(document.object.type) }} {{ mm.mimeIcon(document.object.type) }}

View File

@ -25,7 +25,7 @@
{% endblock %} {% endblock %}
{% block layout_wvm_content %} {% block layout_wvm_content %}
{% block admin_content %}<!-- block personcontent empty --> {% block admin_content %}<!-- block content empty -->
<h1>{{ 'Events configuration' |trans }}</h1> <h1>{{ 'Events configuration' |trans }}</h1>
{% endblock %} {% endblock %}
{% endblock %} {% endblock %}

View File

@ -21,7 +21,7 @@
{% block title %}{{ 'Events participation' |trans }}{% endblock title %} {% block title %}{{ 'Events participation' |trans }}{% endblock title %}
{% block personcontent %} {% block content %}
<h2>{{ 'Events participation' |trans }}</h2> <h2>{{ 'Events participation' |trans }}</h2>
<table class="table table-striped table-bordered mt-3 events"> <table class="table table-striped table-bordered mt-3 events">

View File

@ -5,7 +5,7 @@
{% block title 'Remove family membership'|trans %} {% block title 'Remove family membership'|trans %}
{% block personcontent %} {% block content %}
{{ include('ChillMainBundle:Util:confirmation_template.html.twig', {{ 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 } ) %} {% set title = 'Edit family members for %name%'|trans({ '%name%' : person.firstName ~ " " ~ person.lastName } ) %}
{% block title title %} {% block title title %}
{% block personcontent %} {% block content %}
<h1>{{ title }}</h1> <h1>{{ title }}</h1>
{{ form_start(form) }} {{ form_start(form) }}

View File

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

View File

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

View File

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

View File

@ -11,5 +11,5 @@ $chill-household-context: #929d69;
$social-issue-color: #4bafe8; $social-issue-color: #4bafe8;
$social-action-color: $orange; $social-action-color: $orange;
$activity-color: yellowgreen; $activity-color: yellowgreen;
$budget-resource-color: #5ba1c1; $budget-resource-color: #608b89;
$budget-charge-color: #e03851; $budget-charge-color: #e03851;

View File

@ -8,7 +8,7 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
{% block admin_content %}<!-- block personcontent empty --> {% block admin_content %}<!-- block content empty -->
<div class="container-fluid"> <div class="container-fluid">
<div class="col-10 push-1"> <div class="col-10 push-1">
<h2>{{ 'Welcome to the admin section !'|trans }}</h2> <h2>{{ 'Welcome to the admin section !'|trans }}</h2>

View File

@ -25,7 +25,7 @@
{% endblock %} {% endblock %}
{% block layout_wvm_content %} {% block layout_wvm_content %}
{% block admin_content %}<!-- block personcontent empty --> {% block admin_content %}<!-- block content empty -->
<h1>{{ 'Permissions management of your chill installation' |trans }}</h1> <h1>{{ 'Permissions management of your chill installation' |trans }}</h1>
{% endblock %} {% endblock %}
{% endblock %} {% endblock %}

View File

@ -18,7 +18,7 @@
{% block title page_title %} {% block title page_title %}
{% block personcontent %} {% block content %}
<h1>{{ page_title }}</h1> <h1>{{ page_title }}</h1>

View File

@ -4,7 +4,7 @@
{% block title %}{{ 'Accompanying period list for person'|trans }}{% endblock title %} {% block title %}{{ 'Accompanying period list for person'|trans }}{% endblock title %}
{% block personcontent %} {% block content %}
<div class="person-accompanyingperiods"> <div class="person-accompanyingperiods">
<h1>{{ 'Accompanying period list'|trans }}</h1> <h1>{{ 'Accompanying period list'|trans }}</h1>

View File

@ -4,7 +4,7 @@
{% block title 'Re-Open a period'|trans %} {% block title 'Re-Open a period'|trans %}
{% block personcontent %} {% block content %}
<h1>{{ 'Re-Open a period'|trans }}</h1> <h1>{{ 'Re-Open a period'|trans }}</h1>

View File

@ -20,7 +20,7 @@
{% block title 'Edit an address'|trans %} {% block title 'Edit an address'|trans %}
{% block personcontent %} {% block content %}
<div class="address-edit"> <div class="address-edit">
{% block content %} {% block content %}

View File

@ -20,7 +20,7 @@
{% block title %}{{ 'Addresses history for %name%'|trans({ '%name%': person.firstName ~ ' ' ~ person.lastName } ) }}{% endblock %} {% block title %}{{ 'Addresses history for %name%'|trans({ '%name%': person.firstName ~ ' ' ~ person.lastName } ) }}{% endblock %}
{% block personcontent %} {% block content %}
<div class="person-address"> <div class="person-address">
<h1>{{ 'Addresses history'|trans }}</h1> <h1>{{ 'Addresses history'|trans }}</h1>

View File

@ -20,7 +20,7 @@
{% block title %}{{ 'New address'|trans }}{% endblock %} {% block title %}{{ 'New address'|trans }}{% endblock %}
{% block personcontent %} {% block content %}
<div class="address-new"> <div class="address-new">
{% block content %} {% block content %}

View File

@ -3,7 +3,7 @@
{% set person = entity.person %} {% set person = entity.person %}
{% set activeRouteKey = '' %} {% set activeRouteKey = '' %}
{% block personcontent %} {% block content %}
{% embed '@ChillMain/CRUD/_delete_content.html.twig' %} {% embed '@ChillMain/CRUD/_delete_content.html.twig' %}
{% endembed %} {% endembed %}
{% endblock %} {% endblock %}

View File

@ -7,7 +7,7 @@
{% include('@ChillMain/CRUD/_edit_title.html.twig') %} {% include('@ChillMain/CRUD/_edit_title.html.twig') %}
{% endblock title %} {% endblock title %}
{% block personcontent %} {% block content %}
{% embed '@ChillMain/CRUD/_edit_content.html.twig' %} {% embed '@ChillMain/CRUD/_edit_content.html.twig' %}
{% endembed %} {% endembed %}
{% endblock %} {% endblock %}

View File

@ -4,7 +4,7 @@
{% block title %}{{ ('crud.' ~ crud_name ~ '.index.title')|trans({'%crud_name%': crud_name}) }}{% endblock %} {% block title %}{{ ('crud.' ~ crud_name ~ '.index.title')|trans({'%crud_name%': crud_name}) }}{% endblock %}
{% block personcontent %} {% block content %}
{% embed '@ChillPerson/CRUD/_index.html.twig' %} {% embed '@ChillPerson/CRUD/_index.html.twig' %}
{% block add_new %} {% block add_new %}
<li> <li>

View File

@ -7,7 +7,7 @@
{% embed('@ChillPerson/CRUD/_new_title.html.twig') %}{% endembed %} {% embed('@ChillPerson/CRUD/_new_title.html.twig') %}{% endembed %}
{% endblock %} {% endblock %}
{% block personcontent %} {% block content %}
{% embed '@ChillPerson/CRUD/_new_content.html.twig' %} {% embed '@ChillPerson/CRUD/_new_content.html.twig' %}
{% block crud_content_header %} {% block crud_content_header %}
<h1>{{ ('crud.'~crud_name~'.title_new')|trans({'%person%': person|chill_entity_render_string }) }}</h1> <h1>{{ ('crud.'~crud_name~'.title_new')|trans({'%person%': person|chill_entity_render_string }) }}</h1>

View File

@ -7,7 +7,7 @@
{% include('@ChillPerson/CRUD/_view_title.html.twig') %} {% include('@ChillPerson/CRUD/_view_title.html.twig') %}
{% endblock %} {% endblock %}
{% block personcontent %} {% block content %}
{% embed '@ChillPerson/CRUD/_view_content.html.twig' %} {% embed '@ChillPerson/CRUD/_view_content.html.twig' %}
{% block crud_content_header %} {% block crud_content_header %}
<h1>{{ ('crud.' ~ crud_name ~ '.title_view')|trans({'%person%': person|chill_entity_render_string }) }}</h1> <h1>{{ ('crud.' ~ crud_name ~ '.title_view')|trans({'%person%': person|chill_entity_render_string }) }}</h1>

View File

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

View File

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

View File

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

View File

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

View File

@ -6,7 +6,7 @@
' ' ~ person.lastName }}{% endblock %} ' ' ~ person.lastName }}{% endblock %}
{% block personcontent %} {% block content %}
<div class="person-duplicate"> <div class="person-duplicate">
<h1>{{ 'Désigner un dossier doublon'|trans }}</h1> <h1>{{ 'Désigner un dossier doublon'|trans }}</h1>

View File

@ -5,7 +5,7 @@
{% block title %}{{ 'Person duplicate'|trans|capitalize ~ ' ' ~ person.firstName|capitalize ~ {% block title %}{{ 'Person duplicate'|trans|capitalize ~ ' ' ~ person.firstName|capitalize ~
' ' ~ person.lastName }}{% endblock %} ' ' ~ person.lastName }}{% endblock %}
{% block personcontent %} {% block content %}
<div class="person-duplicate"> <div class="person-duplicate">
<h1>{{ title|default('Person duplicate')|trans }}</h1> <h1>{{ title|default('Person duplicate')|trans }}</h1>

View File

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

View File

@ -14,7 +14,7 @@
{% block title %}{{ 'edit resource'|trans|capitalize }}{% endblock %} {% block title %}{{ 'edit resource'|trans|capitalize }}{% endblock %}
{% block personcontent %} {% block content %}
<h1 style="margin-bottom: 2rem;">{{ 'edit resource'|trans }}</h1> <h1 style="margin-bottom: 2rem;">{{ 'edit resource'|trans }}</h1>

View File

@ -14,7 +14,7 @@
{{ encore_entry_link_tags('mod_pickentity_type') }} {{ encore_entry_link_tags('mod_pickentity_type') }}
{% endblock %} {% endblock %}
{% block personcontent %} {% block content %}
<h1>{{ 'List of resources'|trans }}</h1> <h1>{{ 'List of resources'|trans }}</h1>

View File

@ -4,7 +4,7 @@
{% block title %}{{ 'Delete residential address'|trans }}{% endblock %} {% block title %}{{ 'Delete residential address'|trans }}{% endblock %}
{% block personcontent %} {% block content %}
<div class="address-new"> <div class="address-new">
<h1>{{ block('title') }}</h1> <h1>{{ block('title') }}</h1>

View File

@ -4,7 +4,7 @@
{% block title 'Edit a residential address'|trans %} {% block title 'Edit a residential address'|trans %}
{% block personcontent %} {% block content %}
<div class="address-edit"> <div class="address-edit">
{% block content %} {% block content %}

View File

@ -4,7 +4,7 @@
{% block title %}{{ 'Residential addresses history for %name%'|trans({ '%name%': person.firstName ~ ' ' ~ person.lastName } ) }}{% endblock %} {% block title %}{{ 'Residential addresses history for %name%'|trans({ '%name%': person.firstName ~ ' ' ~ person.lastName } ) }}{% endblock %}
{% block personcontent %} {% block content %}
<div class="person-address"> <div class="person-address">
<h1>{{ 'Residential addresses history'|trans }}</h1> <h1>{{ 'Residential addresses history'|trans }}</h1>

View File

@ -4,7 +4,7 @@
{% block title %}{{ 'New residential address'|trans }}{% endblock %} {% block title %}{{ 'New residential address'|trans }}{% endblock %}
{% block personcontent %} {% block content %}
<div class="address-new"> <div class="address-new">
{% block content %} {% block content %}

View File

@ -26,7 +26,7 @@ This view should receive those arguments:
{% block title %}{{ 'Timeline for %name%'|trans({'%name%': person }) }}{% endblock %} {% block title %}{{ 'Timeline for %name%'|trans({'%name%': person }) }}{% endblock %}
{% block personcontent %} {% block content %}
<div class="timeline"> <div class="timeline">
{{ timeline|raw }} {{ timeline|raw }}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -5,7 +5,7 @@
{% block title 'Remove task'|trans %} {% block title 'Remove task'|trans %}
{% block personcontent %} {% block content %}
{{ include('@ChillMain/Util/confirmation_template.html.twig', {{ include('@ChillMain/Util/confirmation_template.html.twig',
{ {

View File

@ -23,7 +23,7 @@
{{ 'Edit task'|trans }} {{ 'Edit task'|trans }}
{% endblock %} {% endblock %}
{% block personcontent %} {% block content %}
{% include '@ChillTask/SingleTask/_edit.html.twig' %} {% 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 title 'Tasks for {{ name }}'|trans({ '{{ name }}' : person|chill_entity_render_string }) %}
{% block personcontent %} {% block content %}
<div class="col-md-10 col-xxl"> <div class="col-md-10 col-xxl">
<h1>{{ block('title') }}</h1> <h1>{{ block('title') }}</h1>

View File

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

View File

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

View File

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

View File

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