1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- {% extends 'base.html.twig' %}
- {% block title %}Counter index{% endblock %}
- {% block body %}
- <h1>Counter index</h1>
- <table class="table">
- <thead>
- <tr>
- <th>Id</th>
- <th>StartTime</th>
- <th>EndTime</th>
- <th>Name</th>
- <th>State</th>
- <th>TimeToLive</th>
- <th>actions</th>
- </tr>
- </thead>
- <tbody>
- {% for counter in counters %}
- <tr>
- <td>{{ counter.id }}</td>
- <td>{{ counter.startTime ? counter.startTime|date('H:i:s') : '' }}</td>
- <td>{{ counter.endTime ? counter.endTime|date('H:i:s') : '' }}</td>
- <td>{{ counter.name }}</td>
- <td>{{ counter.state }}</td>
- <td>{{ counter.timeToLive | minutes }}</td>
- <td>
- <a class="btn" href="{{ path('app_admin_show', {'id': counter.id}) }}">{{ "show" | trans }}</a>
- {{ include('admin/_modif_button.html.twig', {'counter': counter}) }}
- {{ include('admin/_start_form.html.twig', {'counter': counter}) }}
- </td>
- </tr>
- {% else %}
- <tr>
- <td colspan="7">{{ "no records found" | trans }}</td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
- <a class="btn" href="{{ path('app_admin_new') }}">{{ "Create new" | trans }}</a>
- {% endblock %}
|