mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 00:23:50 +00:00
mise en forme formulaire et lien edition-view
This commit is contained in:
@@ -12,8 +12,34 @@ This view should receive those arguments:
|
||||
|
||||
{% block title %}CLChillPersonBundle:Person:see{% endblock %}
|
||||
|
||||
{% set edit_tmp_name = 'CLChillPersonBundle:Form:go_to_form.html.twig' %}
|
||||
{% set edit_tmp_args = { 'form_path_args' : { 'id': person.id },
|
||||
'form_path_key' : 'chill_person_general_edit' } %}
|
||||
|
||||
|
||||
{% block personcontent %}
|
||||
|
||||
|
||||
{{ include(edit_tmp_name, edit_tmp_args) }}
|
||||
|
||||
<figure>
|
||||
<h2>{{ 'views.Person.view.general'|trans }}</h2>
|
||||
|
||||
<dl>
|
||||
<dt class="inline">{{ 'views.Person.view.surname'|trans }}</dt>
|
||||
<dd>{{ person.surname }}</dd>
|
||||
|
||||
<dt class="inline">{{ 'views.Person.view.name'|trans }}</dt>
|
||||
<dd>{{ person.surname }}</dd>
|
||||
|
||||
<dt class="inline">{{ 'views.Person.view.gender'|trans }}</dt>
|
||||
<dd>{{ ( 'person.gender.' ~ person.genre|default('undefined'))|trans }}</dd>
|
||||
|
||||
</dl>
|
||||
|
||||
|
||||
</figure>
|
||||
|
||||
<figure>
|
||||
<h2>{{ 'views.Person.view.birth'|trans }}</h2>
|
||||
|
||||
@@ -38,6 +64,8 @@ This view should receive those arguments:
|
||||
</dl>
|
||||
</figure>
|
||||
|
||||
{{ include(edit_tmp_name, edit_tmp_args) }}
|
||||
|
||||
<figure>
|
||||
<h2>{{ 'views.Person.view.family'|trans }}</h2>
|
||||
|
||||
@@ -52,6 +80,8 @@ This view should receive those arguments:
|
||||
</dl>
|
||||
</figure>
|
||||
|
||||
{{ include(edit_tmp_name, edit_tmp_args) }}
|
||||
|
||||
<figure>
|
||||
<h2>{{ 'views.Person.view.administrative'|trans }}</h2>
|
||||
|
||||
@@ -74,6 +104,8 @@ This view should receive those arguments:
|
||||
</dl>
|
||||
</figure>
|
||||
|
||||
{{ include(edit_tmp_name, edit_tmp_args) }}
|
||||
|
||||
<figure>
|
||||
<h2>{{ 'views.Person.view.contact'|trans }}</h2>
|
||||
|
||||
|
Reference in New Issue
Block a user