Debugging

This commit is contained in:
Marc Ducobu 2014-11-10 14:17:34 +01:00
parent 0fd0f3994c
commit b50eb2ec81

View File

@ -1,51 +1,41 @@
{% extends "CLChillMainBundle::layout.html.twig" %}
{% block title %}Recherche {{ pattern }}{% endblock %}
{% extends "ChillMainBundle::layout.html.twig" %}
{% block title %}Recherche {{ pattern }}{% endblock %}
{% block content %}
<table class="striped rounded">
<thead>
<tr>
<th>{% trans %}person.name{% endtrans %}</th>
<th>{% trans %}person.dateOfBirth{% endtrans %}</th>
<th>{% trans %}person.nationality{% endtrans %}</th>
</tr>
</thead>
<tbody>
{% for person in persons %}
<tr>
<td>
<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)|default( 'person.without_date_of_birth'|trans )}}</span></td>
<td>
{% if person.nationality is not null %}
<span class="personNationality">{{person.nationality.label}}</span>
{% else %}
{{ 'views.Person.list.without_nationality'|trans }}
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
{% block content %}
<table class="striped rounded">
<thead>
<tr>
<th>{% trans %}person.name{% endtrans %}</th>
<th>{% trans %}person.dateOfBirth{% endtrans %}</th>
<th>{% trans %}person.nationality{% endtrans %}</th>
</tr>
</thead>
<tbody>
{% for person in persons %}
<tr>
<td>
<a href="{{ path('chill_person_view', {person_id : person.getId}) }}">
<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)|default( 'person.without_date_of_birth'|trans )}}</span>
</td>
<td>
{% if person.nationality is not null %}
<span class="personNationality">{{person.nationality.label}}</span>
{% else %}
{{ 'views.Person.list.without_nationality'|trans }}
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}