Refactoring translation

This commit is contained in:
Marc Ducobu
2014-11-19 09:43:53 +01:00
parent 4c2a3c3624
commit 87b4cb65e4
18 changed files with 209 additions and 261 deletions

View File

@@ -27,41 +27,42 @@
{{ form_start(form) }}
<fieldset>
<legend><h2>{{ 'views.Person.view.general'|trans }}</h2></legend>
<legend><h2>{{ 'General information'|trans }}</h2></legend>
{{ form_row(form.firstName, {'label' : 'First name'}) }}
{{ form_row(form.lastName, {'label' : 'Last name'}) }}
{{ form_row(form.genre, {'label' : 'views.Person.view.gender'}) }}
{{ form_row(form.genre, {'label' : 'Gender'}) }}
</fieldset>
<fieldset>
<legend><h2>{{ 'views.Person.view.birth'|trans }}</h2></legend>
{{ form_row(form.dateOfBirth, {'label': 'views.Person.view.dateOfBirth'} ) }}
{{ form_row(form.placeOfBirth, { 'label' : 'views.Person.view.placeOfBirth'} ) }}
{{ form_row(form.countryOfBirth, { 'label' : 'views.Person.view.contry_of_birth' } ) }}
<legend><h2>{{ 'Birth information'|trans }}</h2></legend>
{{ form_row(form.dateOfBirth, {'label': 'Date of birth'} ) }}
{{ form_row(form.placeOfBirth, { 'label' : 'Place of birth'} ) }}
{{ form_row(form.countryOfBirth, { 'label' : 'Country of birth' } ) }}
</fieldset>
<fieldset>
<legend><h2>{{ 'views.Person.view.administrative'|trans }}</h2></legend>
{{ form_row(form.nationality, { 'label' : 'views.Person.view.nationality'|trans} ) }}
<legend><h2>{{ 'Administrative information'|trans }}</h2></legend>
{{ form_row(form.nationality, { 'label' : 'Nationality'|trans} ) }}
</fieldset>
<fieldset>
<legend><h2>{{ 'views.Person.view.contact'|trans }}</h2></legend>
{{ form_row(form.email, {'label': 'views.Person.view.email'}) }}
<legend><h2>{{ 'Contact information'|trans }}</h2></legend>
{{ form_row(form.email, {'label': 'Email'}) }}
{{ form_row(form.phonenumber, {'label': 'Phonenumber'}) }}
</fieldset>
{{ form_row(form.memo, {'label' : 'views.Person.view.memo'} ) }}
{{ form_row(form.memo, {'label' : 'Memo'} ) }}
{{ form_rest(form) }}
<div class="grid-12 centered sticky-form-buttons">
<a href="{{ path('chill_person_view', {'person_id' : person.id}) }}" class="sc-button grey">
<i class="fa fa-arrow-left"></i>
{{ 'views.Person.edit.cancel'|trans }}
{{ 'Return'|trans }}
</a>
<button class="sc-button green" type="submit"><i class="fa fa-save"></i> {{ 'views.Person.edit.submit'|trans }}</button>
<button class="sc-button red" type="reset"><i class="fa fa-eraser"></i> {{ 'views.Person.edit.reset'|trans }}</button>
<button class="sc-button green" type="submit"><i class="fa fa-save"></i> {{ 'Submit'|trans }}</button>
<button class="sc-button red" type="reset"><i class="fa fa-eraser"></i> {{ 'Reset'|trans }}</button>
</div>
{{ form_end(form) }}