Adding spokenLanguages into views close #356

This commit is contained in:
Marc Ducobu 2014-11-26 13:29:00 +01:00
parent f903e50d73
commit 9b52fa562e
4 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -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>

View File

@ -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) }}

View File

@ -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>