]> git.0d.be Git - django-panik-emissions.git/blob - emissions/templates/emissions/episode_form.html
templates: add proper markup for appbar action buttons
[django-panik-emissions.git] / emissions / templates / emissions / episode_form.html
1 {% extends "base.html" %}
2
3 {% block extrascripts %}
4 <script src="{{ STATIC_URL }}ckeditor/ckeditor/ckeditor.js"></script>
5 <script src="{{ STATIC_URL }}ckeditor/ckeditor-init.js"></script>
6 {% endblock %}
7
8 {% block appbar %}
9 {% if episode.id %}
10 <h2>{{ episode.emission.title }} — {{ episode.title }}</h2>
11 <span class="actions"><a href="../">Retourner à l'épisode</a></span>
12 {% else %}
13 <h2>{{ emission.title }} — Nouvel épisode</h2>
14 <span class="actions"><a href="./">Retourner à l'émission</a></span>
15 {% endif %}
16 {% endblock %}
17
18
19 {% block content %}
20
21     <form method="post" enctype="multipart/form-data">
22       <div id="form-content">
23         {% csrf_token %}
24         <input type="hidden" name="id_emission" value="{{ emission.id }}"/>
25         {{ form.as_p }}
26       </div>
27       {% block buttons %}
28       <button>Enregistrer</button>
29       {% if episode.id %}
30         <a href="..">Annuler</a>
31       {% else %}
32         <a href=".">Annuler</a>
33       {% endif %}
34       {% endblock %}
35     </form>
36 {% endblock %}