Add minor fixes to summary page:

* add messages when no resources
* add address to person
* replace household link label with household number
This commit is contained in:
Julien Fastré 2021-06-29 16:03:59 +02:00
parent a35f3363b2
commit 1119e20a49
2 changed files with 99 additions and 93 deletions

View File

@ -91,7 +91,7 @@
<li>
<i class="fa fa-li fa-map-marker"></i>
{%- if p.person.lastAddress is not empty -%}
{{ p.person.getLastAddress|chill_entity_render_box({'with_valid_from': false}) }}
{{ p.person.currentHouseholdAddress|chill_entity_render_box({'with_valid_from': false}) }}
{%- else -%}
<span class="chill-no-data-statement">{{ 'No address given'|trans }}</span>
{%- endif -%}
@ -110,7 +110,7 @@
) }}"
class="sc-button">
<i class="fa fa-home"></i>
{{ 'household.Household file'|trans }}
n°&nbsp;{{ p.person.getCurrentHousehold.id }}
</a>
</li>
{% endif %}
@ -124,6 +124,10 @@
<h2>{{ 'Resources'|trans }}</h2>
{% if accompanyingCourse.resources|length == 0 %}
<p class="chill-no-data-statement">{{ 'Any resource for this accompanying course'|trans }}</p>
{% else %}
<div class="flex-bloc">
{% for r in accompanyingCourse.resources %}
<div class="item-bloc">
@ -219,6 +223,7 @@
</div>
{% endfor %}
</div>
{% endif %}
<h2>{{ 'Social actions'|trans }}</h2>

View File

@ -189,6 +189,7 @@ See accompanying period: Voir cette période d'accompagnement
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.
Add to household now: Ajouter à un ménage
Any resource for this accompanying course: Aucun interlocuteur privilégié pour ce parcours
# pickAPersonType
Pick a person: Choisir une personne