From b0d65b4eadacaf179c7f69ee2c9ceb44c09de570 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 14 Jul 2015 09:44:45 +0530 Subject: [PATCH] users: Use checkboxes for groups during create --- plinth/modules/users/forms.py | 1 + plinth/modules/users/templates/users_create.html | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/plinth/modules/users/forms.py b/plinth/modules/users/forms.py index 0efe16f11..77fc73f71 100644 --- a/plinth/modules/users/forms.py +++ b/plinth/modules/users/forms.py @@ -41,6 +41,7 @@ class CreateUserForm(UserCreationForm): choices=GROUP_CHOICES, label=_('Groups'), required=False, + widget=forms.CheckboxSelectMultiple, help_text=_('Select which services should be available to the new ' 'user. The user will be able to log in to services that ' 'support single sign-on through LDAP, if they are in the ' diff --git a/plinth/modules/users/templates/users_create.html b/plinth/modules/users/templates/users_create.html index 20e15fb91..4fd097880 100644 --- a/plinth/modules/users/templates/users_create.html +++ b/plinth/modules/users/templates/users_create.html @@ -20,6 +20,14 @@ {% load bootstrap %} +{% block page_head %} + +{% endblock %} + {% block content %}