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,14 +19,15 @@
{% 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" >
<div class="grid-10 push-1 parent">
{% if alternatePersons is not empty %} {% if alternatePersons is not empty %}
<table class="rounded stripped" style="width=100%"> <table class="rounded stripped" style="width=100%">
<thead> <thead>
<tr> <tr>
<th>{{ 'Name'|trans }}</th> <th class="chill-red">{{ 'Name'|trans }}</th>
<th>{{ 'Date of birth'|trans }}</th> <th class="chill-green">{{ 'Date of birth'|trans }}</th>
<th>{{ 'Nationality'|trans }}</th> <th class="chill-orange">{{ 'Nationality'|trans }}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -34,23 +35,25 @@
<tr> <tr>
<td> <td>
<a href="{{ path('chill_person_view', {'person_id': person.id } ) }}"> <a href="{{ path('chill_person_view', {'person_id': person.id } ) }}">
{{ person }}{% spaceless %}{% if person.isOpen == false %}<i class="icon-lock"></i>{% endif %} {{ person }}{% spaceless %}
{% endspaceless %} {% if person.isOpen == false %}
<i class="icon-lock"></i>
{% endif %}
{% endspaceless %}
</a> </a>
</td> </td>
<td>{{ person.birthdate|localizeddate('long', 'none', app.request.locale) }}</td> <td>{{ person.birthdate|localizeddate('long', 'none', app.request.locale) }}</td>
<td>{% if person.nationality is not null %}{{ person.nationality.name|localize_translatable_string }}{% else %}{{ 'Without nationality'|trans }}{% endif %} <td>
{% if person.nationality is not null %}{{ person.nationality.name|localize_translatable_string }}{% else %}{{ 'Without nationality'|trans }}{% endif %}
</td>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
{% endif %} {% endif %}
<div id="person_details"> <div id="person_details">
{{ form_start(form) }} {{ form_start(form) }}
<h2>{{ 'You will create this person'|trans }}</h2> <h2>{{ 'You will create this person'|trans }}</h2>
<dl> <dl>
@ -70,12 +73,11 @@
<dd>{{ creation_date|localizeddate('long', 'none', app.request.locale) }}</dd> <dd>{{ creation_date|localizeddate('long', 'none', app.request.locale) }}</dd>
</dl> </dl>
{{ form_rest(form) }} {{ form_rest(form) }}
<button class="sc-button green" type="submit"><i class="fa fa-check"></i> {{ 'Confirm the creation'|trans }}</button> <button class="sc-button green" type="submit"><i class="fa fa-check"></i> {{ 'Confirm the creation'|trans }}</button>
{{ form_end(form) }} {{ form_end(form) }}
</div>
</div> </div>
</div> </div>
{% endblock content %} {% endblock content %}