mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 22:04:23 +00:00
Adding spokenLanguages into views close #356
This commit is contained in:
parent
f903e50d73
commit
9b52fa562e
@ -22,6 +22,7 @@
|
||||
'Memo': Mémo
|
||||
'Phonenumber': Numéro de téléphone
|
||||
'{0} Born the %date% | {1} Born the %date%': '{0} Né le %date% | {1} Née le %date%'
|
||||
'Spoken languages': Langues parlées
|
||||
|
||||
#Gender
|
||||
'Male': Homme
|
||||
|
@ -43,6 +43,7 @@
|
||||
<fieldset>
|
||||
<legend><h2>{{ 'Administrative information'|trans }}</h2></legend>
|
||||
{{ form_row(form.nationality, { 'label' : 'Nationality'|trans} ) }}
|
||||
{{ form_row(form.spokenLanguages, {'label' : 'Spoken languages'}) }}
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
|
@ -93,6 +93,14 @@ This view should receive those arguments:
|
||||
{% endif %}
|
||||
</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt class="inline">{{'Spoken languages'|trans}}</dt>
|
||||
<dd>
|
||||
{% for lang in person.spokenLanguages %}
|
||||
{{ lang.name|localize_translatable_string }}{% if not loop.last %},{% endif %}
|
||||
{% endfor %}
|
||||
</dd>
|
||||
</dl>
|
||||
</figure>
|
||||
|
||||
{{ include(edit_tmp_name, edit_tmp_args) }}
|
||||
|
@ -53,6 +53,12 @@
|
||||
{% else %}
|
||||
<p class="without_nationality"><i class="fa fa-flag"></i> {% trans %}Without nationality{% endtrans %}</p>
|
||||
{% endif %}
|
||||
|
||||
<p><i class="fa fa-bullhorn"></i>
|
||||
{% for lang in person.spokenLanguages %}
|
||||
{{ lang.name|localize_translatable_string }}{% if not loop.last %},{% endif %}
|
||||
{% endfor %}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user