]> git.ozlabs.org Git - patchwork/blob - templates/patchwork/bundle.html
templates: Add CSRF (cross-site request forgery) values to form posts
[patchwork] / templates / patchwork / bundle.html
1 {% extends "base.html" %}
2
3 {% load person %}
4
5 {% block headers %}
6   <script language="JavaScript" type="text/javascript"
7    src="/js/jquery-1.3.min.js">
8   </script>
9   <script language="JavaScript" type="text/javascript"
10    src="/js/jquery.tablednd_0_5.js">
11   </script>
12   <script language="JavaScript" type="text/javascript"
13    src="/js/bundle.js">
14   </script>
15 {% endblock %}
16 {% block title %}{{project.name}}{% endblock %}
17 {% block heading %}bundle: {{bundle.name}}{% endblock %}
18
19 {% block body %}
20
21 <p>This bundle contains patches for the {{ bundle.project.linkname }}
22 project.</p>
23
24 <p><a href="{% url patchwork.views.bundle.mbox bundle_id=bundle.id %}"
25 >Download bundle as mbox</a></p>
26
27
28 <form method="post">
29  {% csrf_token %}
30  <input type="hidden" name="form" value="bundle"/>
31 <table class="form">
32
33  <tr>
34   <th colspan="2" class="headerrow">Bundle settings</th>
35  </tr>
36
37 {{ bundleform }}
38  <tr>
39   <td colspan="2" class="submitrow">
40    <input type="submit" name="action" value="Update"/>
41    <input type="submit" name="action" value="Delete"/>
42   </td>
43  </tr>
44 </table>
45 </form>
46
47 <div style="clear: both; padding: 1em;"></div>
48
49 {% include "patchwork/patch-list.html" %}
50
51 {% endblock %}