2017-12-15 11:33:01 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% block title %}
|
|
|
|
Add an Episode - Season {{season.number}} of {{show.name}} - Episodes.Community
|
|
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<section class="show-details">
|
|
|
|
<div class="banner" style="background-image: url(/media/uploaded_resources/{{show.banner}});"></div>
|
2018-02-27 17:49:45 +00:00
|
|
|
<div class="banner-cover row p-4">
|
2017-12-15 11:33:01 +00:00
|
|
|
<div class="artwork">
|
2017-12-28 15:24:27 +00:00
|
|
|
{% if episode.season.artwork %}
|
|
|
|
<img src="/media/uploaded_resources/{{season.artwork}}">
|
|
|
|
{% else %}
|
|
|
|
<img src="/media/uploaded_resources/{{show.artwork}}">
|
|
|
|
{% endif %}
|
2017-12-15 11:33:01 +00:00
|
|
|
</div>
|
2018-02-27 17:49:45 +00:00
|
|
|
<div class="details season col">
|
2017-12-15 11:33:01 +00:00
|
|
|
<h1>{{show.name}}</h1>
|
2017-12-28 15:24:27 +00:00
|
|
|
{% if season.name %}
|
|
|
|
<h3>{{ season.name }}</h3>
|
|
|
|
{% else %}
|
|
|
|
<h3>Season {{ season.number }}</h3>
|
|
|
|
{% endif %}
|
2018-02-27 17:49:45 +00:00
|
|
|
<p>
|
2017-12-28 15:24:27 +00:00
|
|
|
{% if season.description %}
|
|
|
|
{{ season.description }}
|
|
|
|
{% else %}
|
|
|
|
{{ show.description }}
|
|
|
|
{% endif %}
|
2017-12-15 11:33:01 +00:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
2018-02-27 17:49:45 +00:00
|
|
|
<section class="container mt-2 mb-5">
|
|
|
|
<nav aria-label="breadcrumb">
|
|
|
|
<ol class="breadcrumb">
|
2018-03-02 13:46:25 +00:00
|
|
|
<li class="breadcrumb-item"><a href="{{show.url}}">{{show.name}}</a></li>
|
2018-02-27 17:49:45 +00:00
|
|
|
<li class="breadcrumb-item active" aria-current="page">New Episode</li>
|
|
|
|
</ol>
|
|
|
|
</nav>
|
2017-12-15 11:33:01 +00:00
|
|
|
<h1>Add an Episode</h1>
|
|
|
|
{% if error %}
|
2018-02-27 17:49:45 +00:00
|
|
|
<div class="alert alert-danger">{{error}}</div>
|
2017-12-15 11:33:01 +00:00
|
|
|
{% endif %}
|
2018-02-27 17:49:45 +00:00
|
|
|
<form class="form-horizontal" role="form" action="" method="post">
|
|
|
|
{% include "form.html" %}
|
|
|
|
<div class="form-group">
|
|
|
|
<button type="submit" class="btn btn-primary">Submit</button>
|
|
|
|
</div>
|
2017-12-15 11:33:01 +00:00
|
|
|
</form>
|
|
|
|
</section>
|
|
|
|
{% endblock %}
|