From 0e80b31626fbf961b7492af3ecb4bd6330ef28df Mon Sep 17 00:00:00 2001 From: Elrond Date: Sat, 2 Mar 2013 16:02:51 +0100 Subject: [PATCH] Turn "License preference" into a normal field. instead of rendering it by hand, use the normal field rendering tools. Old: [choose box] License preference New: License preference [choose box] This will be your default license on upload forms. --- mediagoblin/templates/mediagoblin/edit/edit_account.html | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/mediagoblin/templates/mediagoblin/edit/edit_account.html b/mediagoblin/templates/mediagoblin/edit/edit_account.html index 3f508af4..7fe2c031 100644 --- a/mediagoblin/templates/mediagoblin/edit/edit_account.html +++ b/mediagoblin/templates/mediagoblin/edit/edit_account.html @@ -15,7 +15,7 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . #} -{% extends "mediagoblin/base.html" %} +{%- extends "mediagoblin/base.html" %} {% import "/mediagoblin/utils/wtforms.html" as wtforms_util %} @@ -39,7 +39,7 @@

{%- trans username=user.username -%} Changing {{ username }}'s account settings - {%- endtrans %} + {%- endtrans -%}

{{ wtforms_util.render_field_div(form.old_password) }} {{ wtforms_util.render_field_div(form.new_password) }} @@ -47,10 +47,7 @@

{{ form.wants_comment_notification }} {{ wtforms_util.render_label(form.wants_comment_notification) }}

-
-

{{ form.license_preference }} - {{ wtforms_util.render_label(form.license_preference) }}

-
+ {{- wtforms_util.render_field_div(form.license_preference) }}
{{ csrf_token }} -- 2.25.1