mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
person: add civility: entity, migration, form, twig, config
This commit is contained in:
@@ -37,6 +37,9 @@
|
||||
|
||||
<fieldset>
|
||||
<legend><h2>{{ 'General information'|trans }}</h2></legend>
|
||||
{%- if form.civility is defined -%}
|
||||
{{ form_row(form.civility, {'label' : 'Civility'}) }}
|
||||
{% endif %}
|
||||
{{ form_row(form.firstName, {'label' : 'First name'}) }}
|
||||
{{ form_row(form.lastName, {'label' : 'Last name'}) }}
|
||||
{% if form.altNames is defined %}
|
||||
|
@@ -51,6 +51,15 @@ This view should receive those arguments:
|
||||
<figure class="person-details">
|
||||
<h2 class="chill-red">{{ 'General information'|trans }}</h2>
|
||||
<dl>
|
||||
{% if person.civility is not null %}
|
||||
<dt>{{ 'Civility'|trans }} :</dt>
|
||||
<dd>
|
||||
{% if person.civility.name|length > 0 %}
|
||||
{{ person.civility.name|first }}
|
||||
{% endif %}
|
||||
</dd>
|
||||
{% endif %}
|
||||
|
||||
<dt>{{ 'First name'|trans }} :</dt>
|
||||
<dd>{{ person.firstName }}</dd>
|
||||
|
||||
|
Reference in New Issue
Block a user