mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
Merge branch 'master' into notification/completion
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
|
||||
{% macro insert_onthefly(type, entity) %}
|
||||
{% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with {
|
||||
action: 'show', displayBadge: true,
|
||||
targetEntity: { name: type, id: entity.id },
|
||||
buttonText: entity|chill_entity_render_string
|
||||
} %}
|
||||
{% endmacro %}
|
||||
|
||||
<div>
|
||||
{% if accompanyingCourse.participations is not empty %}
|
||||
<div class="col mb-4">
|
||||
<h4 class="item-key">{{ 'Persons associated'|trans }}</h4>
|
||||
{% for r in accompanyingCourse.participations %}
|
||||
{{ _self.insert_onthefly('person', r.person) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if accompanyingCourse.socialIssues is not empty %}
|
||||
<div class="col mb-4">
|
||||
<h4 class="item-key">{{ 'Social issues'|trans }}</h4>
|
||||
{% for s in accompanyingCourse.socialIssues %}
|
||||
{{ s|chill_entity_render_box }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
|
@@ -0,0 +1,18 @@
|
||||
{% extends '@ChillPerson/AccompanyingCourse/layout.html.twig' %}
|
||||
|
||||
{% block title %}{{ 'Delete accompanying period'|trans }}{% endblock %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% include '@ChillPerson/AccompanyingCourse/_confirm_delete.html.twig' %}
|
||||
|
||||
{{ include('@ChillMain/Util/confirmation_template.html.twig',
|
||||
{
|
||||
'title' : 'Delete accompanying period'|trans,
|
||||
'confirm_question' : 'Are you sure you want to remove the accompanying period "%id%" ?'|trans({ '%id%' : accompanyingCourse.id } ),
|
||||
'cancel_route' : 'chill_person_accompanying_course_edit',
|
||||
'cancel_parameters' : {'accompanying_period_id' : accompanyingCourse.id},
|
||||
'form' : delete_form
|
||||
} ) }}
|
||||
{% endblock %}
|
@@ -0,0 +1,18 @@
|
||||
{% extends '@ChillPerson/AccompanyingCourse/layout.html.twig' %}
|
||||
|
||||
{% block title %}{{ 'Delete accompanying period'|trans }}{% endblock %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% include '@ChillPerson/AccompanyingCourse/_confirm_delete.html.twig' %}
|
||||
|
||||
{{ include('@ChillMain/Util/confirmation_template.html.twig',
|
||||
{
|
||||
'title' : 'Delete accompanying period'|trans,
|
||||
'confirm_question' : 'Are you sure you want to remove the accompanying period "%id%" ?'|trans({ '%id%' : accompanyingCourse.id } ),
|
||||
'cancel_route' : 'chill_person_accompanying_period_list',
|
||||
'cancel_parameters' : {'person_id' : person_id},
|
||||
'form' : delete_form
|
||||
} ) }}
|
||||
{% endblock %}
|
@@ -154,6 +154,15 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if accompanyingCourse.administrativeLocation is not null %}
|
||||
<div class="mbloc col col-sm-6 col-lg-4">
|
||||
<div class="administrative-location">
|
||||
<h4 class="item-key">{{ 'accompanying_course.administrative_location'|trans }}</h4>
|
||||
{{ accompanyingCourse.administrativeLocation.name }} ({{ accompanyingCourse.administrativeLocation.locationType.title|localize_translatable_string }})
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="social-actions my-4">
|
||||
|
Reference in New Issue
Block a user