Files
symfony-k3s/templates/exercise_session/index.html.twig
T

52 lines
1.9 KiB
Twig

{% extends 'base.html.twig' %}
{% block title %}ExerciseSession index{% endblock %}
{% block body %}
<h1>ExerciseSession index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Type</th>
<th>StartedAt</th>
<th>EndedAt</th>
<th>Duration</th>
<th>Distance</th>
<th>Calories</th>
<th>Notes</th>
<th>Source</th>
<th>CreatedAt</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for exercise_session in exercise_sessions %}
<tr>
<td>{{ exercise_session.id }}</td>
<td>{{ exercise_session.type }}</td>
<td>{{ exercise_session.startedAt ? exercise_session.startedAt|date('Y-m-d H:i:s') : '' }}</td>
<td>{{ exercise_session.endedAt ? exercise_session.endedAt|date('Y-m-d H:i:s') : '' }}</td>
<td>{{ exercise_session.duration }}</td>
<td>{{ exercise_session.distance }}</td>
<td>{{ exercise_session.calories }}</td>
<td>{{ exercise_session.notes }}</td>
<td>{{ exercise_session.source }}</td>
<td>{{ exercise_session.createdAt ? exercise_session.createdAt|date('Y-m-d H:i:s') : '' }}</td>
<td>
<a href="{{ path('app_exercise_session_show', {'id': exercise_session.id}) }}">show</a>
<a href="{{ path('app_exercise_session_edit', {'id': exercise_session.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="11">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('app_exercise_session_new') }}">Create new</a>
{% endblock %}