mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-17 15:54:23 +00:00
Warning : this commit require to rename some table column, but the original Version file has been update. If you do not care to loose your date, you may run : ``` php app/console doctrine:migrations:execute --down 20160318111334 php app/console doctrine:migrations:execute --up 20160318111334 php app/console doctrine:cache:metadata #(if you have a cache for doctrine meta date) ``` close #20
44 lines
1.2 KiB
Twig
44 lines
1.2 KiB
Twig
{% extends '::base.html.twig' %}
|
|
|
|
{% block body -%}
|
|
<h1>Event list</h1>
|
|
|
|
<table class="records_list">
|
|
<thead>
|
|
<tr>
|
|
<th>Id</th>
|
|
<th>Name</th>
|
|
<th>Date</th>
|
|
<th>Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for entity in entities %}
|
|
<tr>
|
|
<td><a href="{{ path('chill_event__event_show', { 'id': entity.id }) }}">{{ entity.id }}</a></td>
|
|
<td>{{ entity.name }}</td>
|
|
<td>{% if entity.date %}{{ entity.date|date('Y-m-d H:i:s') }}{% endif %}</td>
|
|
<td>
|
|
<ul>
|
|
<li>
|
|
<a href="{{ path('chill_event__event_show', { 'id': entity.id }) }}">show</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{ path('chill_event__event_edit', { 'id': entity.id }) }}">edit</a>
|
|
</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
<ul>
|
|
<li>
|
|
<a href="{{ path('chill_event__event_new') }}">
|
|
Create a new entry
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
{% endblock %}
|