mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 06:14:23 +00:00
Improving the display of the information
This commit is contained in:
parent
4aeba2019d
commit
29e63edd78
@ -10,43 +10,35 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>{{ 'Opening date'|trans }}</th>
|
<th>{{ 'Opening date'|trans }}</th>
|
||||||
<th>{{ 'Closing date'|trans }}</th>
|
<th>{{ 'Closing date'|trans }}</th>
|
||||||
|
<th>{{ 'Remark'|trans }}</th>
|
||||||
<th> </th>
|
<th> </th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% set i = 0 %}
|
|
||||||
{% for accompanying_period in accompanying_periods %}
|
{% for accompanying_period in accompanying_periods %}
|
||||||
<tr class="{% if i is not even %}striped{% endif %}">
|
<tr>
|
||||||
<td>{{ accompanying_period.openingDate|localizeddate('long', 'none', app.request.locale) }}</td>
|
<td>{{ accompanying_period.openingDate|localizeddate('long', 'none', app.request.locale) }}</td>
|
||||||
<td>{% spaceless %}
|
<td>{% spaceless %}
|
||||||
{% if accompanying_period.isOpen %}
|
{% if accompanying_period.isOpen %}
|
||||||
{{ 'Still open'|trans }}
|
{{ 'Still open'|trans }}
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ accompanying_period.closingDate|localizeddate('long', 'none', app.request.locale) }}
|
{{ accompanying_period.closingDate|localizeddate('long', 'none', app.request.locale) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endspaceless %}</td>
|
{% endspaceless %}</td>
|
||||||
|
<td>
|
||||||
|
{{ accompanying_period.remark }}
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="small warning btn icon-right entypo icon-pencil">
|
<div class="small warning btn icon-right entypo icon-pencil">
|
||||||
<a href="{{ path('chill_person_accompanying_period_update', {'person_id' : person.id, 'period_id' : accompanying_period.id } ) }}">{{ 'Edit'|trans }}</a>
|
<a href="{{ path('chill_person_accompanying_period_update', {'person_id' : person.id, 'period_id' : accompanying_period.id } ) }}">{{ 'Edit'|trans }}</a>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% if accompanying_period.remark is not empty %}
|
|
||||||
<tr class="{% if i is not even %}striped{% endif %}">
|
|
||||||
<td colspan="3">
|
|
||||||
<pre>{{ accompanying_period.remark }}</pre>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
{% endif %}
|
|
||||||
{% set i = i+1 %}
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
<div class="form_control">
|
<div class="form_control">
|
||||||
<div class="btn small warning icon-right entypo icon-plus">
|
<div class="btn small warning icon-right entypo icon-plus">
|
||||||
<a href="{{ path ('chill_person_accompanying_period_create', {'person_id' : person.id } ) }}">
|
<a href="{{ path ('chill_person_accompanying_period_create', {'person_id' : person.id } ) }}">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user