2023-10-14 18:26:21 +02:00
|
|
|
{% 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>
|
2024-02-25 20:19:03 +01:00
|
|
|
<td><audio controls src="{{ files_path }}{{ episode.audioFilename }}"></audio></td>
|
2023-10-14 18:26:21 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>Publication date</th>
|
|
|
|
<td>{{ episode.publicationDate ? episode.publicationDate|date('Y-m-d H:i:s') : '' }}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
2024-02-25 20:18:24 +01:00
|
|
|
<a href="{{ path('app_episode_index') }}">Back to list</a>
|
2023-10-14 18:26:21 +02:00
|
|
|
|
2024-02-25 20:18:24 +01:00
|
|
|
<a href="{{ path('app_episode_edit', {'id': episode.id}) }}" class="btn btn-primary">Edit</a>
|
2023-10-14 18:26:21 +02:00
|
|
|
|
|
|
|
{{ include('episode/_delete_form.html.twig') }}
|
|
|
|
{% endblock %}
|