Show episodes on season overview page.
This commit is contained in:
@@ -32,7 +32,47 @@
|
||||
<div class="card">
|
||||
<div class="card-header text-center">Episodes</div>
|
||||
<div class="card-body">
|
||||
Episode list here
|
||||
{% if not model.episodes %}
|
||||
<div class="alert alert-info">No Episodes in this Season</div>
|
||||
{% else %}
|
||||
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="col-sm-auto text-center">#</th>
|
||||
<th scope="col" class="col-sm-auto text-center">Date</th>
|
||||
<th scope="col" class="col-sm-auto text-center">Title</th>
|
||||
|
||||
<th scope="col" class="col-sm-auto text-center">View</th>
|
||||
{% if g.is_editor %}
|
||||
<th scope="col" class="col-sm-auto text-center">Editor</th>
|
||||
{% endif %}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for item in model.episodes %}
|
||||
<tr>
|
||||
<td class="col-sm-auto text-center">{{ item.code }}</td>
|
||||
<td class="col-sm-auto text-center">{{ item.date }}</td>
|
||||
<td class="col-sm-auto text-center">{{ item.title }}</td>
|
||||
|
||||
<td class="col-sm-auto text-center">
|
||||
<a class="btn btn-default" href="#"><span class="fas fa-eye"></span></a>
|
||||
</td>
|
||||
|
||||
{% if g.is_editor %}
|
||||
<td class="col-sm-auto text-center">
|
||||
<a class="btn btn-default" href="{{ url_for('episode_edit', season_id = item.id, episode_id = item.id) }}">
|
||||
<span class="fas fa-pencil-alt"></span>
|
||||
</a>
|
||||
</td>
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user