mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
edit template & update action
This commit is contained in:
@@ -43,8 +43,7 @@ CL\Chill\PersonBundle\Entity\Person:
|
||||
address:
|
||||
type: text
|
||||
email:
|
||||
type: string
|
||||
length: 255
|
||||
type: text
|
||||
manyToOne:
|
||||
countryOfBirth:
|
||||
targetEntity: CL\Chill\MainBundle\Entity\Country
|
||||
|
@@ -12,6 +12,9 @@ chill_person_general_edit:
|
||||
pattern: /view/{id}/edit
|
||||
defaults: {_controller: CLChillPersonBundle:Person:edit }
|
||||
|
||||
chill_person_general_update:
|
||||
pattern: /view/{id}/update
|
||||
defaults: {_controller: CLChillPersonBundle:Person:update }
|
||||
|
||||
|
||||
chill_person_search:
|
||||
|
@@ -10,12 +10,22 @@ person:
|
||||
unknow: Inconnu
|
||||
cohab: Cohabitation légale
|
||||
single: Célibataire
|
||||
gender:
|
||||
MAN: Homme
|
||||
WOM: Femme
|
||||
undefined: Non renseigné
|
||||
|
||||
|
||||
search:
|
||||
q_is_empty: Votre requête est vide. Veuillez introduire un terme de recherche
|
||||
no_results: La requête <span class="research">%q%</span> ne renvoie aucun résultat.
|
||||
|
||||
|
||||
validation:
|
||||
Person:
|
||||
form:
|
||||
person:
|
||||
success: Bravo ! Les données ont été mises à jour.
|
||||
error: '{1} Le champs %field% est incorrect. Veuillez le mettre à jour | ]1, Inf] Plusieurs champs sont incorrects. Veuillez les vérifier.'
|
||||
|
||||
views:
|
||||
layout:
|
||||
@@ -23,9 +33,11 @@ views:
|
||||
without_nationality: Nationalité inconnue
|
||||
Person:
|
||||
view:
|
||||
general: Généralités
|
||||
birth: Naissance
|
||||
dateOfBirth: Date de naissance
|
||||
placeOfBirth: Lieu de Naissance
|
||||
placeOfBirth: Lieu de naissance
|
||||
contry_of_birth: Pays de naissance
|
||||
country_of_birth_unknow: Pays inconnu
|
||||
without_nationality: Nationalité inconnue
|
||||
family: Famille
|
||||
@@ -38,6 +50,10 @@ views:
|
||||
email: Courrer électronique
|
||||
address: Adresse
|
||||
administrative: Administratif
|
||||
surname: Prénom
|
||||
name: Nom
|
||||
gender: Genre
|
||||
memo: Mémo
|
||||
list:
|
||||
without_nationality: Nationalité inconnue
|
||||
|
||||
|
@@ -8,7 +8,49 @@
|
||||
|
||||
{% form_theme form 'CLChillMainBundle:Form:fields.html.twig' %}
|
||||
|
||||
{{ form(form) }}
|
||||
{{ form_start(form) }}
|
||||
|
||||
<button type="submit">{{ 'views.Person.edit.submit'|trans }}</button>
|
||||
|
||||
<fieldset>
|
||||
<legend><h2>{{ 'views.Person.view.general'|trans }}</h2></legend>
|
||||
{{ form_row(form.surname, {'label' : 'views.Person.view.surname'}) }}
|
||||
{{ form_row(form.name, {'label' : 'views.Person.view.name'}) }}
|
||||
{{ form_row(form.genre, {'label' : 'views.Person.view.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' } ) }}
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend><h2>{{ 'views.Person.view.family'|trans }}</h2></legend>
|
||||
{{ form_row(form.civil_union, {'label' : 'views.Person.view.civil_union'}) }}
|
||||
{{ form_row(form.nbOfChild, {'label' : 'views.Person.view.nb_of_childs'}) }}
|
||||
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend><h2>{{ 'views.Person.view.administrative'|trans }}</h2></legend>
|
||||
{{ form_row(form.nationality, { 'label' : 'views.Person.view.nationality'|trans} ) }}
|
||||
{{ form_row(form.belgian_national_number, { 'label' : 'views.Person.view.national_number'}) }}
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend><h2>{{ 'views.Person.view.contact'|trans }}</h2></legend>
|
||||
{{ form_row(form.address, {'label' : 'views.Person.view.address'}) }}
|
||||
{{ form_row(form.email, {'label': 'views.Person.view.email'}) }}
|
||||
|
||||
</fieldset>
|
||||
|
||||
{{ form_row(form.memo, {'label' : 'views.Person.view.memo'} ) }}
|
||||
|
||||
|
||||
{{ form_rest(form) }}
|
||||
{{ form_end(form) }}
|
||||
|
||||
|
||||
{% endblock personcontent %}
|
Reference in New Issue
Block a user