aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2013-02-04 21:25:01 +0100
committerElrond <elrond+mediagoblin.org@samba-tng.org>2013-02-22 14:23:16 +0100
commitd647b62699cd8f3a2548626a8ee309ac9af4db43 (patch)
tree71def9e79547125e212253063ac54595dc297951
parentaa9ac2b287aa0d9395a5ef2d6612a086cea07600 (diff)
downloadmediagoblin-d647b62699cd8f3a2548626a8ee309ac9af4db43.tar.lz
mediagoblin-d647b62699cd8f3a2548626a8ee309ac9af4db43.tar.xz
mediagoblin-d647b62699cd8f3a2548626a8ee309ac9af4db43.zip
Use wtforms_util.render_field_div more in media_collect.html
If we have to render fields individually, we still can use wtforms_util.render_field_div for each field. Makes things much smaller and readable.
-rw-r--r--mediagoblin/templates/mediagoblin/user_pages/media_collect.html16
1 files changed, 3 insertions, 13 deletions
diff --git a/mediagoblin/templates/mediagoblin/user_pages/media_collect.html b/mediagoblin/templates/mediagoblin/user_pages/media_collect.html
index 8b19e8c0..159eeeb4 100644
--- a/mediagoblin/templates/mediagoblin/user_pages/media_collect.html
+++ b/mediagoblin/templates/mediagoblin/user_pages/media_collect.html
@@ -47,7 +47,7 @@
</div>
<br />
-
+
<p class="form_field_label">
<label for="{{ (form.collection.name) }}">{{ _(form.collection.label.text) }}</label>
</p>
@@ -59,20 +59,10 @@
<div id="new_collection" class="subform">
<h3>{% trans %}Add a new collection{% endtrans %}</h3>
- <p class="form_field_label">
- <label for="{{ (form.collection_title.name) }}">{{ _(form.collection_title.label.text) }}</label>
- </p>
- <div class="form_field_input">
- {{ form.collection_title }}
- </div>
+ {{- wtforms_util.render_field_div(form.collection_title) }}
{{- wtforms_util.render_field_div(form.collection_description) }}
</div>
- <p class="form_field_label">
- <label for="{{ (form.note.name) }}">{{ _(form.note.label.text) }}</label>
- </p>
- <div class="form_field_input">
- {{ form.note }}
- </div>
+ {{- wtforms_util.render_field_div(form.note) }}
<div class="form_submit_buttons">
{# TODO: This isn't a button really... might do unexpected things :) #}