show.html.twig 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Counter{% endblock %}
  3. {% block body %}
  4. <h1>{{ "Counter" | trans }}</h1>
  5. <table class="table">
  6. <tbody>
  7. <tr>
  8. <th>{{ "id" | trans }}</th>
  9. <td>{{ counter.id }}</td>
  10. </tr>
  11. <tr>
  12. <th>{{ "StartTime" | trans }}</th>
  13. <td>{{ counter.startTime ? counter.startTime|date('H:i:s') : '' }}</td>
  14. </tr>
  15. <tr>
  16. <th>{{ "EndTime" | trans }}</th>
  17. <td>{{ counter.endTime ? counter.endTime|date('H:i:s') : '' }}</td>
  18. </tr>
  19. <tr>
  20. <th>{{ "Name" | trans }}</th>
  21. <td>{{ counter.name }}</td>
  22. </tr>
  23. <tr>
  24. <th>{{ "State" | trans }}</th>
  25. <td>{{ counter.state }}</td>
  26. </tr>
  27. <tr>
  28. <th>{{ "TimeToLive" | trans }}</th>
  29. <td>{{ counter.timeToLive | minutes}}</td>
  30. </tr>
  31. </tbody>
  32. </table>
  33. <a class="btn" href="{{ path('app_admin_index') }}">{{ "back to list" | trans }}</a>
  34. {{ include('admin/_modif_button.html.twig', {'counter': counter}) }}
  35. {{ include('admin/_delete_form.html.twig') }}
  36. {% endblock %}