]> git.ozlabs.org Git - patchwork/blob - templates/patchwork/patch-form.html
9d2c9549e9c58d1cbc968a7e1af38bb1d5f5a901
[patchwork] / templates / patchwork / patch-form.html
1
2 <div class="patchform"
3   style="border: thin solid black; padding-left: 0.8em; margin-top: 2em;">
4
5  <div class="patchform-properties"
6   style="float: left; margin-right: 4em;">
7   <h3>Properties</h3>
8     <table class="form">
9      <tr>
10       <th>Change state:</th>
11       <td>{{ patchform.state }}</td>
12      </tr>
13      <tr>
14       <th>Delegate to:</td>
15       <td>{{ patchform.delegate }}</td>
16      </tr>
17      <tr>
18       <td></td>
19       <td>
20        <input type="submit" value="Update">
21       </td>
22      </tr>
23     </table>
24   </form>
25  </div>
26
27  <div class="patchform-actions" style="padding-left: 4em;">
28   <h3>Actions</h3>
29    <table class="form">
30     <tr>
31      <td>Ack:</td>
32      <td>
33       <form action="{% url patchwork.views.patch patch=patch.id %}"
34        method="post">
35        <input type="hidden" name="action" value="act"/>
36        <input type="submit" value="Ack"/>
37       </form>
38      </td>
39     </tr>
40     <tr>
41      <td>Create bundle:</td>
42      <td>
43        {% if createbundleform.name.errors %}
44        <span class="errors">{{createbundleform.errors}}</span>
45        {% endif %}
46       <form method="post">
47        <input type="hidden" name="action" value="createbundle"/>
48         {{ createbundleform.name }}
49        <input value="Create" type="submit"/>
50       </form>
51       </td>
52     </tr>
53 {% if bundles %}
54     <tr>
55      <td>Add to bundle:</td>
56      <td>
57       <form action="{% url patchwork.views.bundle.setbundle %}" method="post">
58        <input type="hidden" name="action" value="add"/>
59        <input type="hidden" name="patch_id" value="{{ patch.id }}"/>
60        <select name="name"/>
61         {% for bundle in bundles %}
62          <option value="{{bundle.id}}">{{bundle.name}}</option>
63         {% endfor %}
64         </select>
65        <input value="Add" type="submit"/>
66       </form>
67      </td>
68     </tr>
69 {% endif %}
70     <tr>
71      <td>Archive:</td>
72      <td>
73       <form method="post">
74        <input type="hidden" name="action" value="archive"/>
75        <input type="submit" value="Archive"/>
76       </form>
77      </td>
78     </tr>
79    </table>
80   </form>
81
82  </div>
83
84  <div style="clear: both;">
85  </div>
86 </div>
87