LSBC/templates/episode/show.html.twig

50 lines
1.1 KiB
Twig

{% extends 'base.html.twig' %}
{% block title %}Episode “{{ episode.title }}{% endblock %}
{% block stylesheets %}
{{ parent() }}
<style>
th { min-width: 8em; }
</style>
{% endblock %}
{% block body %}
<h1>Episode “{{ episode.title }}”</h1>
<table class="table">
<tbody>
<tr>
<th>ID</th>
<td>{{ episode.id }}</td>
</tr>
<tr>
<th>Title</th>
<td>{{ episode.title }}</td>
</tr>
<tr>
<th>Description</th>
<td>{{ episode.description }}</td>
</tr>
<tr>
<th>Audio file name</th>
<td>{{ episode.audioFilename }}</td>
</tr>
<tr>
<th>Audio</th>
<td><mark>TODO</mark></td>
</tr>
<tr>
<th>Publication date</th>
<td>{{ episode.publicationDate ? episode.publicationDate|date('Y-m-d H:i:s') : '' }}</td>
</tr>
</tbody>
</table>
<a href="{{ path('app_episode_index') }}">back to list</a>
<a href="{{ path('app_episode_edit', {'id': episode.id}) }}">edit</a>
{{ include('episode/_delete_form.html.twig') }}
{% endblock %}