Person review form with padding and color for th

This commit is contained in:
Marc Ducobu 2015-09-01 16:43:35 +02:00
parent ed1a133d3d
commit 7b391d3212

View File

@ -19,63 +19,65 @@
{% block title %}{{ 'Alreay existing person'|trans }}{% endblock title %} {% block title %}{{ 'Alreay existing person'|trans }}{% endblock title %}
{% block content %} {% block content %}
<div id="person_wrapper" class="container"> <div class="grid-12 parent" >
{% if alternatePersons is not empty %} <div class="grid-10 push-1 parent">
<table class="rounded stripped" style="width=100%"> {% if alternatePersons is not empty %}
<thead> <table class="rounded stripped" style="width=100%">
<tr> <thead>
<th>{{ 'Name'|trans }}</th> <tr>
<th>{{ 'Date of birth'|trans }}</th> <th class="chill-red">{{ 'Name'|trans }}</th>
<th>{{ 'Nationality'|trans }}</th> <th class="chill-green">{{ 'Date of birth'|trans }}</th>
</tr> <th class="chill-orange">{{ 'Nationality'|trans }}</th>
</thead> </tr>
<tbody> </thead>
{% for person in alternatePersons %} <tbody>
<tr> {% for person in alternatePersons %}
<td> <tr>
<a href="{{ path('chill_person_view', {'person_id': person.id } ) }}"> <td>
{{ person }}{% spaceless %}{% if person.isOpen == false %}<i class="icon-lock"></i>{% endif %} <a href="{{ path('chill_person_view', {'person_id': person.id } ) }}">
{% endspaceless %} {{ person }}{% spaceless %}
</a> {% if person.isOpen == false %}
</td> <i class="icon-lock"></i>
<td>{{ person.birthdate|localizeddate('long', 'none', app.request.locale) }}</td> {% endif %}
<td>{% if person.nationality is not null %}{{ person.nationality.name|localize_translatable_string }}{% else %}{{ 'Without nationality'|trans }}{% endif %} {% endspaceless %}
</tr> </a>
</td>
{% endfor %} <td>{{ person.birthdate|localizeddate('long', 'none', app.request.locale) }}</td>
<td>
</tbody> {% if person.nationality is not null %}{{ person.nationality.name|localize_translatable_string }}{% else %}{{ 'Without nationality'|trans }}{% endif %}
</table> </td>
{% endif %} </tr>
{% endfor %}
</tbody>
</table>
{% endif %}
<div id="person_details">
{{ form_start(form) }}
<h2>{{ 'You will create this person'|trans }}</h2>
<dl>
<dt>{{ 'First name'|trans }}</dt>
<dd>{{ firstName }}</dd>
<dt>{{ 'Last name'|trans }}</dt>
<dd>{{ lastName }}</dd>
<dt>{{ 'Date of birth'|trans }}</dt>
<dd>{{ birthdate|localizeddate('long', 'none', app.request.locale)|default( 'Unknown date of birth'|trans ) }}</dd>
<dt>{{ 'Gender'|trans }}</dt>
<dd>{{ gender|trans }}</dd>
<dt>{{ 'Creation date'|trans }}</dt>
<dd>{{ creation_date|localizeddate('long', 'none', app.request.locale) }}</dd>
</dl>
<div id="person_details"> {{ form_rest(form) }}
{{ form_start(form) }} <button class="sc-button green" type="submit"><i class="fa fa-check"></i> {{ 'Confirm the creation'|trans }}</button>
<h2>{{ 'You will create this person'|trans }}</h2>
{{ form_end(form) }}
<dl> </div>
<dt>{{ 'First name'|trans }}</dt>
<dd>{{ firstName }}</dd>
<dt>{{ 'Last name'|trans }}</dt>
<dd>{{ lastName }}</dd>
<dt>{{ 'Date of birth'|trans }}</dt>
<dd>{{ birthdate|localizeddate('long', 'none', app.request.locale)|default( 'Unknown date of birth'|trans ) }}</dd>
<dt>{{ 'Gender'|trans }}</dt>
<dd>{{ gender|trans }}</dd>
<dt>{{ 'Creation date'|trans }}</dt>
<dd>{{ creation_date|localizeddate('long', 'none', app.request.locale) }}</dd>
</dl>
{{ form_rest(form) }}
<button class="sc-button green" type="submit"><i class="fa fa-check"></i> {{ 'Confirm the creation'|trans }}</button>
{{ form_end(form) }}
</div> </div>
</div> </div>
{% endblock content %} {% endblock content %}