From d647b62699cd8f3a2548626a8ee309ac9af4db43 Mon Sep 17 00:00:00 2001 From: Elrond Date: Mon, 4 Feb 2013 21:25:01 +0100 Subject: [PATCH] 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. --- .../mediagoblin/user_pages/media_collect.html | 16 +++------------- 1 file 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 @@
- +

@@ -59,20 +59,10 @@

{% trans %}Add a new collection{% endtrans %}

-

- -

-
- {{ form.collection_title }} -
+ {{- wtforms_util.render_field_div(form.collection_title) }} {{- wtforms_util.render_field_div(form.collection_description) }}
-

- -

-
- {{ form.note }} -
+ {{- wtforms_util.render_field_div(form.note) }}
{# TODO: This isn't a button really... might do unexpected things :) #} -- 2.25.1