mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
accourse resume page: add requestor and resources informations
This commit is contained in:
parent
99d412adc9
commit
21b33fb4f6
@ -34,7 +34,7 @@ const appMessages = {
|
|||||||
title: "Origine de la demande",
|
title: "Origine de la demande",
|
||||||
label: "Origine de la demande",
|
label: "Origine de la demande",
|
||||||
placeholder: "Renseignez l'origine de la demande",
|
placeholder: "Renseignez l'origine de la demande",
|
||||||
not_valid: "Indiquez une origine de la demande",
|
not_valid: "Indiquez une origine à la demande",
|
||||||
},
|
},
|
||||||
persons_associated: {
|
persons_associated: {
|
||||||
title: "Usagers concernés",
|
title: "Usagers concernés",
|
||||||
@ -125,7 +125,7 @@ const appMessages = {
|
|||||||
participation_not_valid: "sélectionnez au minimum 1 usager",
|
participation_not_valid: "sélectionnez au minimum 1 usager",
|
||||||
socialIssue_not_valid: "sélectionnez au minimum une problématique sociale",
|
socialIssue_not_valid: "sélectionnez au minimum une problématique sociale",
|
||||||
location_not_valid: "indiquez au minimum une localisation temporaire du parcours",
|
location_not_valid: "indiquez au minimum une localisation temporaire du parcours",
|
||||||
origin_not_valid: "indiquez une origine de la demande",
|
origin_not_valid: "Indiquez une origine à la demande",
|
||||||
set_a_scope: "indiquez au moins un service",
|
set_a_scope: "indiquez au moins un service",
|
||||||
sure: "Êtes-vous sûr ?",
|
sure: "Êtes-vous sûr ?",
|
||||||
sure_description: "Une fois le changement confirmé, il ne sera plus possible de le remettre à l'état de brouillon !",
|
sure_description: "Une fois le changement confirmé, il ne sera plus possible de le remettre à l'état de brouillon !",
|
||||||
|
@ -4,15 +4,12 @@
|
|||||||
{{ 'Resume Accompanying Course'|trans }}
|
{{ 'Resume Accompanying Course'|trans }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% macro button_person(person) %}
|
{% macro insert_onthefly(type, entity) %}
|
||||||
{% if person.isSharingHousehold %}
|
{% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with {
|
||||||
<li>
|
action: 'show', displayBadge: true,
|
||||||
<a href="{{ chill_path_add_return_path('chill_person_household_summary', { 'household_id': person.getCurrentHousehold.id }) }}"
|
targetEntity: { name: type, id: entity.id },
|
||||||
class="btn btn-sm btn-chill-beige" title="{{ 'Show household'|trans ~ ' n° ' ~ person.getCurrentHousehold.id }}">
|
buttonText: entity|chill_entity_render_string
|
||||||
<i class="fa fa-home"></i>
|
} %}
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
{% endif %}
|
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% block js %}
|
{% block js %}
|
||||||
@ -56,6 +53,32 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-6 resources mb-5">
|
||||||
|
<div class="mb-3">
|
||||||
|
<h4 class="item-key">{{ 'Requestor'|trans }}</h4>
|
||||||
|
{% if accompanyingCourse.requestorPerson is not null %}
|
||||||
|
{{ _self.insert_onthefly('person', accompanyingCourse.requestorPerson) }}
|
||||||
|
{% elseif accompanyingCourse.requestorThirdParty is not null %}
|
||||||
|
{{ _self.insert_onthefly('thirdparty', accompanyingCourse.requestorThirdParty) }}
|
||||||
|
{% else %}
|
||||||
|
<span class="chill-no-data-statement">{{ 'No requestor'|trans }}</span>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h4 class="item-key">{{ 'Resources'|trans }}</h4>
|
||||||
|
{% for r in accompanyingCourse.resources %}
|
||||||
|
{% if r.person is not null %}
|
||||||
|
{{ _self.insert_onthefly('person', r.person) }}
|
||||||
|
{% elseif r.thirdParty is not null %}
|
||||||
|
{{ _self.insert_onthefly('thirdparty', r.thirdParty) }}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% if accompanyingCourse.resources is empty %}
|
||||||
|
<span class="chill-no-data-statement">{{ 'No resources'|trans }}</span>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="social-actions mb-5">
|
<div class="social-actions mb-5">
|
||||||
<h2 class="mb-3 d-none">{{ 'Last social actions'|trans }}</h2>
|
<h2 class="mb-3 d-none">{{ 'Last social actions'|trans }}</h2>
|
||||||
{% include 'ChillPersonBundle:AccompanyingCourseWork:list_recent_by_accompanying_period.html.twig' with {'buttonText': false } %}
|
{% include 'ChillPersonBundle:AccompanyingCourseWork:list_recent_by_accompanying_period.html.twig' with {'buttonText': false } %}
|
||||||
|
@ -204,6 +204,9 @@ See accompanying periods: Voir toutes les périodes d'accompagnement
|
|||||||
See accompanying period: Voir la période
|
See accompanying period: Voir la période
|
||||||
Edit accompanying period: Modifier la période
|
Edit accompanying period: Modifier la période
|
||||||
See this period: Voir cette période
|
See this period: Voir cette période
|
||||||
|
Requestor: Demandeur
|
||||||
|
No requestor: Pas de demandeur
|
||||||
|
No resources: "Pas d'interlocuteurs privilégiés"
|
||||||
Referrer: Référent
|
Referrer: Référent
|
||||||
Some peoples does not belong to any household currently. Add them to an household soon: Certaines personnes n'appartiennent à aucun ménage actuellement. Renseignez leur appartenance à un ménage dès que possible.
|
Some peoples does not belong to any household currently. Add them to an household soon: Certaines personnes n'appartiennent à aucun ménage actuellement. Renseignez leur appartenance à un ménage dès que possible.
|
||||||
Add to household now: Ajouter à un ménage
|
Add to household now: Ajouter à un ménage
|
||||||
|
Loading…
x
Reference in New Issue
Block a user