59 lines
1.9 KiB
HTML
59 lines
1.9 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}
|
|
Change a Submission - Episodes.Community
|
|
{% endblock %}
|
|
{% block content %}
|
|
<section class="show-details">
|
|
<div class="banner" style="background-image: url(/media/uploaded_resources/{{show.banner}});"></div>
|
|
<div class="banner-cover row p-4">
|
|
<div class="artwork">
|
|
{% if episode.season.artwork %}
|
|
<img src="/media/uploaded_resources/{{episode.season.artwork}}">
|
|
{% else %}
|
|
<img src="/media/uploaded_resources/{{show.artwork}}">
|
|
{% endif %}
|
|
</div>
|
|
<div class="details season col">
|
|
<h1>{{show.name}}</h1>
|
|
{% if episode.season.name %}
|
|
<h3>{{ episode.season.name }}</h3>
|
|
{% else %}
|
|
<h3>Season {{ episode.season.number }}</h3>
|
|
{% endif %}
|
|
<p>
|
|
{% if episode.season.description %}
|
|
{{ episode.season.description }}
|
|
{% else %}
|
|
{{ show.description }}
|
|
{% endif %}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<section class="container mt-5 mb-5">
|
|
{% load guardian_tags %}
|
|
{% get_obj_perms request.user for show as "show_perms" %}
|
|
<nav aria-label="breadcrumb">
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item"><a href="{{show.url}}">{{show.name}}</a></li>
|
|
<li class="breadcrumb-item"><a href="{{show.url}}/episode/{{episode.season.number}}/{{episode.episode}}-{{episode.name|slugify}}">{{episode.name}}</a></li>
|
|
<li class="breadcrumb-item active" aria-current="page">Edit Submission</li>
|
|
</ol>
|
|
</nav>
|
|
<h1>Submission</h1>
|
|
{% if error %}
|
|
<div class="message error">{{error}}</div>
|
|
{% endif %}
|
|
<form class="form-horizontal" role="form" action="" method="post">
|
|
{% include "form.html" %}
|
|
<div class="form-group">
|
|
<button type="submit" class="btn btn-primary">Edit</button>
|
|
<button type="submit" name="delete" class="btn btn-primary">Delete</button>
|
|
{% if "can_create_show_ban" in show_perms %}
|
|
<button type="submit" name="delete_ban" class="btn btn-primary">Delete and Ban User</button>
|
|
{% endif %}
|
|
</div>
|
|
</form>
|
|
</section>
|
|
{% endblock %}
|