mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
design UX for duplicate person feature
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
{%- macro details(person, options) -%}
|
||||
|
||||
{% import '@ChillMain/Address/macro.html.twig' as address %}
|
||||
|
||||
<ul>
|
||||
<li><b>{{ 'gender'|trans }}</b>:
|
||||
{{ person.gender|trans }}</li>
|
||||
<li><b>{{ 'maritalStatus'|trans }}</b>:
|
||||
{% if person.maritalStatus.name %}{{ person.maritalStatus.name|localize_translatable_string }}{% endif %}</li>
|
||||
<li><b>{{ 'birthdate'|trans }}</b>:
|
||||
{% if person.birthdate is not null %}{{ person.birthdate|format_date('short') }}{% endif %}</li>
|
||||
<li><b>{{ 'placeOfBirth'|trans }}</b>:
|
||||
{% if person.placeOfBirth is not empty %}{{ person.placeOfBirth }}{% endif %}</li>
|
||||
<li><b>{{ 'countryOfBirth'|trans }}</b>:
|
||||
{% if person.countryOfBirth %}{{ person.countryOfBirth.name|localize_translatable_string }}{% endif %}</li>
|
||||
<li><b>{{ 'nationality'|trans }}</b>:
|
||||
{% if person.nationality %}{{ person.nationality.name|localize_translatable_string }}{% endif %}</li>
|
||||
<li><b>{{ 'phonenumber'|trans }}</b>:
|
||||
{{ person.phonenumber }}</li>
|
||||
<li><b>{{ 'mobilenumber'|trans }}</b>:
|
||||
{{ person.mobilenumber }}</li>
|
||||
<li><b>{{ 'email'|trans }}</b>:
|
||||
{{ person.email }}</li>
|
||||
<li><b>{{ 'memo'|trans }}</b>:
|
||||
{{ person.memo }}</li>
|
||||
<li><b>{{ 'address'|trans }}</b>:
|
||||
{%- if person.lastAddress is not empty -%}{{ address._render(person.lastAddress, {'with_valid_from': false}) }}{% endif %}</li>
|
||||
<li><b>{{ 'spokenLanguages'|trans }}</b>:
|
||||
{% for lang in person.spokenLanguages %}{{ lang.name|localize_translatable_string }}{% if not loop.last %},{% endif %}{% endfor %}</li>
|
||||
<li><b>{{ 'contactInfo'|trans }}</b>:
|
||||
{% if person.contactInfo is not empty %}{{ person.contactInfo|nl2br }}{% endif %}</li>
|
||||
|
||||
</ul>
|
||||
{% endmacro %}
|
||||
|
||||
{%- macro links(person, options) -%}
|
||||
<ul>
|
||||
{# TODO suivre toutes les jointures #}
|
||||
<li>compteur activités</li>
|
||||
<li>compteur tâches</li>
|
||||
<li>compteur rapports</li>
|
||||
<li>compteur événements</li>
|
||||
<li>compteur documents</li>
|
||||
</ul>
|
||||
{% endmacro %}
|
Reference in New Issue
Block a user