Fixed hidden fields in oauth client authorization

Removed the translation marking and passed in empty strings to avoid
WTForms automagically creating the labels from the field names (i.e.
client_id => 'Client Id').
This commit is contained in:
Joar Wandborg 2013-03-02 23:40:24 +01:00
parent 56c113c770
commit 77c85224b1
2 changed files with 4 additions and 5 deletions

View File

@ -23,10 +23,9 @@ from mediagoblin.tools.translate import fake_ugettext_passthrough as _
class AuthorizationForm(wtforms.Form):
client_id = wtforms.HiddenField(_(u'Client ID'),
[wtforms.validators.Required()])
next = wtforms.HiddenField(_(u'Next URL'),
[wtforms.validators.Required()])
client_id = wtforms.HiddenField(u'',
validators=[wtforms.validators.Required()])
next = wtforms.HiddenField(u'', validators=[wtforms.validators.Required()])
allow = wtforms.SubmitField(_(u'Allow'))
deny = wtforms.SubmitField(_(u'Deny'))

View File

@ -16,7 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#}
{% extends "mediagoblin/base.html" %}
{% import "/mediagoblin/utils/wtforms.html" as wtforms_util %}
{% import "mediagoblin/utils/wtforms.html" as wtforms_util %}
{% block mediagoblin_content %}
<form action="{{ request.urlgen('mediagoblin.plugins.oauth.authorize_client') }}"