Merge remote-tracking branch 'origin/master' into issue415_filter_suggested_entities_by_close_participations

This commit is contained in:
Julien Fastré 2022-02-17 21:45:43 +01:00
commit a9aeea234c
5 changed files with 28 additions and 29 deletions

View File

@ -14,6 +14,7 @@ and this project adheres to
[activity] correct associated persons by considering only open participations (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/476) [activity] correct associated persons by considering only open participations (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/476)
<!-- write down unreleased development here --> <!-- write down unreleased development here -->
* [person_resources]: Renderboxes used to display person/thirdparty info (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/465)
## Test releases ## Test releases

View File

@ -172,7 +172,7 @@
{%- if options['customButtons']['replace'] is defined -%} {%- if options['customButtons']['replace'] is defined -%}
{{ options['customButtons']['replace'] }} {{ options['customButtons']['replace'] }}
{%- elseif is_granted('CHILL_PERSON_SEE', person) -%} {%- elseif is_granted('CHILL_PERSON_SEE', person) and options['addLink'] -%}
<li> <li>
<a class="btn btn-sm btn-show" title="{{ 'Show person'|trans }}" <a class="btn btn-sm btn-show" title="{{ 'Show person'|trans }}"
href="{{ path('chill_person_view', { person_id: person.id }) }}"></a> href="{{ path('chill_person_view', { person_id: person.id }) }}"></a>

View File

@ -56,6 +56,11 @@
{% if action is defined %} {% if action is defined %}
<ul class="record_actions sticky-form-buttons"> <ul class="record_actions sticky-form-buttons">
<li class="cancel">
<a href="{{ path('chill_person_resource_list', { 'person_id': resource.personOwner.id } ) }}" class="btn btn-cancel">
{{ 'Cancel'|trans }}
</a>
</li>
<li class="edit"> <li class="edit">
<button class="btn btn-edit" <button class="btn btn-edit"
type="submit" id="newPersonResource"> type="submit" id="newPersonResource">

View File

@ -22,41 +22,33 @@
<div class="flex-table"> <div class="flex-table">
{% for resource in personResources %} {% for resource in personResources %}
<div class="item-bloc"> <div class="item-bloc">
<div class="item-row"> {% if resource.kind is not null %}
<div class="item-col" style="width: 50%"> <div class="item-row">
<section>
<p>{{ resource.kind.title.fr|capitalize }}</p>
</section>
</div>
{% endif %}
<div class="{% if resource.kind is not null %} separator {% endif %}">
{% if resource.person is not null %} {% if resource.person is not null %}
<div class="denomination h3"> {{ resource.person|chill_entity_render_box({
<span> 'render': 'bloc',
{% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with { 'addLink': true,
action: 'show', displayBadge: true, 'addInfo': true,
targetEntity: { name: 'person', id: resource.person.id }, 'addAge': true
buttonText: resource.person|chill_entity_render_string, }) }}
isDead: resource.person.deathdate is not null
} %}
</span>
</div>
{% elseif resource.thirdparty is not null %} {% elseif resource.thirdparty is not null %}
<div class="denomination h3"> {{ resource.thirdparty|chill_entity_render_box({
<span> 'render': 'bloc',
{% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with { 'showContacts': false,
action: 'show', displayBadge: true, 'addLink': true,
targetEntity: { name: 'thirdparty', id: resource.thirdparty.id }, 'isConfidential': (resource.thirdparty.contactDataAnonymous ? true : false)
buttonText: resource.thirdParty|chill_entity_render_string, }) }}
parent: resource.thirdparty.parent
} %}
</span>
</div>
{% else %} {% else %}
<div class="denomination h3"> <div class="denomination h3">
<span>{{ resource.freetext }}</span> <span>{{ resource.freetext }}</span>
</div> </div>
{% endif %} {% endif %}
</div>
<div class="item-col" style="justify-content: flex-end; ">
{% if resource.kind %}
<span>{{ resource.kind.title.fr|capitalize }}</span>
{% endif %}
</div>
</div> </div>
{% if resource.comment.comment is not empty %} {% if resource.comment.comment is not empty %}
<div class="item-row separator"> <div class="item-row separator">

View File

@ -240,6 +240,7 @@ Select a type: "Choisissez un type"
Select a person: "Choisissez un usager" Select a person: "Choisissez un usager"
Select a thirdparty: "Choisissez un tiers" Select a thirdparty: "Choisissez un tiers"
Contact person: "Personne de contact" Contact person: "Personne de contact"
Kind: "Type"
# pickAPersonType # pickAPersonType