summaryrefslogtreecommitdiffstats
path: root/templates/patchwork
diff options
context:
space:
mode:
authorGuilherme Salgado <guilherme.salgado@linaro.org>2011-04-12 11:34:57 +0000
committerJeremy Kerr <jk@ozlabs.org>2011-04-14 14:47:08 +0800
commite3f9cdfdfa96f5074a31fe2de0caf0ac52b1aff9 (patch)
treefbec5ad2b4d4e27ccb725b20546428e4a14f855b /templates/patchwork
parentc50379dda534564eb5701d8c007910bc1ee7e066 (diff)
downloadpatchwork-e3f9cdfdfa96f5074a31fe2de0caf0ac52b1aff9.tar.bz2
patchwork-e3f9cdfdfa96f5074a31fe2de0caf0ac52b1aff9.tar.xz
views: Refactor generic_list() to make it less complicated
When a form is submitted it now delegates to separate processing functions according to the action. Apart from being more readable it's now a lot easier to add extra forms for processing lists of patches. Signed-off-by: Guilherme Salgado <guilherme.salgado@linaro.org> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'templates/patchwork')
-rw-r--r--templates/patchwork/patch-list.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/patchwork/patch-list.html b/templates/patchwork/patch-list.html
index 43e0550..770f005 100644
--- a/templates/patchwork/patch-list.html
+++ b/templates/patchwork/patch-list.html
@@ -186,7 +186,7 @@
<tr>
<td></td>
<td>
- <input type="submit" name="action" value="Update"/>
+ <input type="submit" name="action" value="{{patchform.action}}"/>
</td>
</tr>
</table>