diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2013-03-02 16:02:51 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2013-03-02 16:07:11 +0100 |
commit | 0e80b31626fbf961b7492af3ecb4bd6330ef28df (patch) | |
tree | e6f7ad8e6d147cdd88f933edcb46adf145f172c2 | |
parent | b7a3798e1806eb52a244088fb600376ff25e0de9 (diff) | |
download | mediagoblin-0e80b31626fbf961b7492af3ecb4bd6330ef28df.tar.lz mediagoblin-0e80b31626fbf961b7492af3ecb4bd6330ef28df.tar.xz mediagoblin-0e80b31626fbf961b7492af3ecb4bd6330ef28df.zip |
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.
-rw-r--r-- | mediagoblin/templates/mediagoblin/edit/edit_account.html | 9 |
1 files 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 <http://www.gnu.org/licenses/>. #} -{% extends "mediagoblin/base.html" %} +{%- extends "mediagoblin/base.html" %} {% import "/mediagoblin/utils/wtforms.html" as wtforms_util %} @@ -39,7 +39,7 @@ <h1> {%- trans username=user.username -%} Changing {{ username }}'s account settings - {%- endtrans %} + {%- endtrans -%} </h1> {{ wtforms_util.render_field_div(form.old_password) }} {{ wtforms_util.render_field_div(form.new_password) }} @@ -47,10 +47,7 @@ <p>{{ form.wants_comment_notification }} {{ wtforms_util.render_label(form.wants_comment_notification) }}</p> </div> - <div class="form_field_input"> - <p>{{ form.license_preference }} - {{ wtforms_util.render_label(form.license_preference) }}</p> - </div> + {{- wtforms_util.render_field_div(form.license_preference) }} <div class="form_submit_buttons"> <input type="submit" value="{% trans %}Save changes{% endtrans %}" class="button_form" /> {{ csrf_token }} |