mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
circuit of creating a person
This commit is contained in:
51
Resources/views/Person/create.html.twig
Normal file
51
Resources/views/Person/create.html.twig
Normal file
@@ -0,0 +1,51 @@
|
||||
{% extends "CLChillMainBundle::layout.html.twig" %}
|
||||
|
||||
{% block title %}{{ 'views.Person.creation.title'|trans }}{% endblock title %}
|
||||
|
||||
{% block css %}
|
||||
|
||||
{% stylesheets output="css/all.css" filter="cssrewrite"
|
||||
"bundles/clchillperson/css/person.css"
|
||||
%}
|
||||
<link rel="stylesheet" href="{{ asset_url }}"/>
|
||||
{% endstylesheets %}
|
||||
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% form_theme form 'CLChillMainBundle:Form:fields.html.twig' %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
<div id="person_wrapper">
|
||||
<div id="person_details">
|
||||
{{ form_start(form) }}
|
||||
|
||||
<h1>{{ 'views.Person.creation.open'|trans }}</h1>
|
||||
|
||||
{{ form_row(form.name, { 'label' : 'views.Person.view.name'|trans }) }}
|
||||
|
||||
{{ form_row(form.surname, { 'label' : 'views.Person.view.surname'|trans }) }}
|
||||
|
||||
{{ form_row(form.dateOfBirth, { 'label' : 'views.Person.view.dateOfBirth'|trans }) }}
|
||||
|
||||
{{ form_row(form.genre, { 'label' : 'views.Person.view.gender'|trans }) }}
|
||||
|
||||
{{ form_row(form.creation_date, { 'label' : 'views.Person.review.creation_date'|trans }) }}
|
||||
|
||||
{{ form_rest(form) }}
|
||||
|
||||
|
||||
<div class="form_control">
|
||||
<div class="medium success btn icon-right entypo icon-user-add">
|
||||
<button type="submit">{{ 'views.Person.creation.add'|trans }}</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ form_end(form) }}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
{% endblock content %}
|
87
Resources/views/Person/create_review.html.twig
Normal file
87
Resources/views/Person/create_review.html.twig
Normal file
@@ -0,0 +1,87 @@
|
||||
{% extends "CLChillMainBundle::layout.html.twig" %}
|
||||
|
||||
{% block title %}{{ 'views.Person.review.title'|trans }}{% endblock title %}
|
||||
|
||||
{% block css %}
|
||||
|
||||
{% stylesheets output="css/all.css" filter="cssrewrite"
|
||||
"bundles/clchillperson/css/person.css"
|
||||
%}
|
||||
<link rel="stylesheet" href="{{ asset_url }}"/>
|
||||
{% endstylesheets %}
|
||||
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% form_theme form 'CLChillMainBundle:Form:fields.html.twig' %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
<div id="person_wrapper">
|
||||
{% if alternatePersons is not empty %}
|
||||
<table class="rounded stripped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ 'views.Person.review.altName'|trans }}</th>
|
||||
<th>{{ 'views.Person.review.altDateOfBirth'|trans }}</th>
|
||||
<th>{{ 'views.Person.review.altNationality'|trans }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for person in alternatePersons %}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{ path('chill_person_view', {'id': person.id } ) }}">
|
||||
{{ person }}{% spaceless %}{% if person.isOpen == false %}<i class="icon-lock"></i>{% endif %}
|
||||
{% endspaceless %}
|
||||
</a>
|
||||
</td>
|
||||
<td>{{ person.dateOfBirth|date(date_format) }}</td>
|
||||
<td>{{ person.nationality|default('person.without_nationality'|trans) }}
|
||||
</tr>
|
||||
|
||||
{% endfor %}
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
|
||||
<div id="person_details">
|
||||
{{ form_start(form) }}
|
||||
<h2>{{ 'views.Person.review.you_will_create_this_person'|trans }}</h2>
|
||||
|
||||
<dl>
|
||||
<dt>{{ 'views.Person.view.name'|trans }}</dt>
|
||||
<dd>{{ name }}</dd>
|
||||
|
||||
<dt>{{ 'views.Person.view.surname'|trans }}</dt>
|
||||
<dd>{{ surname }}</dd>
|
||||
|
||||
<dt>{{ 'views.Person.view.dateOfBirth'|trans }}</dt>
|
||||
<dd>{{ dateOfBirth|date(date_format)|default( 'person.without_date_of_birth'|trans ) }}</dd>
|
||||
|
||||
<dt>{{ 'views.Person.view.gender'|trans }}</dt>
|
||||
<dd>{{ ('person.gender.' ~ genre)|trans }}</dd>
|
||||
|
||||
<dt>{{ 'views.Person.review.creation_date'|trans }}</dt>
|
||||
<dd>{{ creation_date|date(date_format) }}</dd>
|
||||
</dl>
|
||||
|
||||
{{ form_rest(form) }}
|
||||
|
||||
|
||||
<div class="form_control">
|
||||
<div class="btn medium success entypo icon-right icon-user-add">
|
||||
<button type="submit">{{ 'views.Person.review.confirm_creation'|trans }}</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ form_end(form) }}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
{% endblock content %}
|
@@ -21,6 +21,11 @@
|
||||
<a href="{{ path('chill_person_view', {id : person.id}) }}">
|
||||
<span class="personSurname">{{person.surname}}</span>
|
||||
<span class="personName">{{person.name}}</span>
|
||||
{% spaceless %}
|
||||
{% if person.isOpen == false %}
|
||||
<i class="icon-lock"></i>
|
||||
{% endif %}
|
||||
{% endspaceless %}
|
||||
</a>
|
||||
</td>
|
||||
<td><span class="personDateOfBirth">{{person.dateOfBirth.format(date_format)}}</span></td>
|
||||
|
Reference in New Issue
Block a user