mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
[person] use the same rendering of person in similar person proposition
This commit is contained in:
parent
574c3596d1
commit
bfb19d0670
@ -11,6 +11,7 @@ and this project adheres to
|
|||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
<!-- write down unreleased development here -->
|
<!-- write down unreleased development here -->
|
||||||
|
* [person] use the same rendering of person in similar person proposition (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/348)
|
||||||
* [person] move similar person matcher to PersonACLAwareRepository and replace the SimilarPersonMatcher uses (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/451)
|
* [person] move similar person matcher to PersonACLAwareRepository and replace the SimilarPersonMatcher uses (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/451)
|
||||||
## Test releases
|
## Test releases
|
||||||
|
|
||||||
|
@ -17,6 +17,15 @@
|
|||||||
|
|
||||||
{% block title %}{{ 'Add a person'|trans }}{% endblock title %}
|
{% block title %}{{ 'Add a person'|trans }}{% endblock title %}
|
||||||
|
|
||||||
|
{% macro button_person_after(person) %}
|
||||||
|
{% set household = person.getCurrentHousehold %}
|
||||||
|
{% if household is not null %}
|
||||||
|
<li>
|
||||||
|
<a href="{{ path('chill_person_household_summary', { 'household_id': household.id }) }}" class="btn btn-sm btn-chill-beige"><i class="fa fa-home"></i></a>
|
||||||
|
</li>
|
||||||
|
{% endif %}
|
||||||
|
{% endmacro %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="col-md-10 col-xxl person-new">
|
<div class="col-md-10 col-xxl person-new">
|
||||||
|
|
||||||
@ -31,34 +40,24 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class="table table-bordered border-dark">
|
<div class="flex-table">
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th class="chill-red">{{ 'Name'|trans }}</th>
|
|
||||||
<th class="chill-green">{{ 'Date of birth'|trans }}</th>
|
|
||||||
<th class="chill-orange">{{ 'Nationality'|trans }}</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{% for person in alternatePersons %}
|
{% for person in alternatePersons %}
|
||||||
<tr>
|
<div class="item-bloc">
|
||||||
<td>
|
|
||||||
<a href="{{ path('chill_person_view', {'person_id': person.id } ) }}">
|
{{ person|chill_entity_render_box({
|
||||||
{{ person|chill_entity_render_string }}{% apply spaceless %}
|
'render': 'bloc',
|
||||||
{% if person.isOpen == false %}
|
'addLink': true,
|
||||||
<i class="icon-lock"></i>
|
'addInfo': true,
|
||||||
{% endif %}
|
'addAge': true,
|
||||||
{% endapply %}
|
'addAltNames': true,
|
||||||
</a>
|
'addCenter': true,
|
||||||
</td>
|
'address_multiline': false,
|
||||||
<td>{% if person.birthdate is not null %}{{ person.birthdate|format_date('long') }}{% else %} {% endif %}</td>
|
'customButtons': { 'after': _self.button_person_after(person) }
|
||||||
<td>
|
}) }}
|
||||||
{% if person.nationality is not null %}{{ person.nationality.name|localize_translatable_string }}{% else %}{{ 'Without nationality'|trans }}{% endif %}
|
</div>
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</div>
|
||||||
</table>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{{ form_start(form, {'attr' : {'id' : 'create-form'}}) }}
|
{{ form_start(form, {'attr' : {'id' : 'create-form'}}) }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user