summaryrefslogtreecommitdiffstats
path: root/ogcp/forms/auth.py
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/forms/auth.py')
-rw-r--r--ogcp/forms/auth.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ogcp/forms/auth.py b/ogcp/forms/auth.py
index 526fdb0..ba7a545 100644
--- a/ogcp/forms/auth.py
+++ b/ogcp/forms/auth.py
@@ -7,7 +7,7 @@
from wtforms import (
Form, SubmitField, HiddenField, SelectField, BooleanField, IntegerField,
- StringField, RadioField, PasswordField, SelectMultipleField
+ StringField, RadioField, PasswordField, SelectMultipleField, widgets
)
from wtforms.validators import InputRequired
from flask_wtf import FlaskForm
@@ -47,6 +47,8 @@ class UserForm(FlaskForm):
scopes = SelectMultipleField(
label=_l('Allowed scopes'),
description=_l('Leave this empty to give full permissions'),
+ option_widget=widgets.CheckboxInput(),
+ widget=widgets.ListWidget(prefix_label=False)
)
submit_btn = SubmitField(
label=_l('Submit')