From b84b93f8900954d779b069f3f68611a652c2776c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Cantu=C3=A1ria?= Date: Thu, 30 Apr 2020 13:49:59 -0300 Subject: [PATCH] Adiciona roles in rows --- sapl/base/forms.py | 4 ++-- sapl/templates/crud/usuario_edit.html | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/sapl/base/forms.py b/sapl/base/forms.py index b0edb6ea3..2c891dc18 100644 --- a/sapl/base/forms.py +++ b/sapl/base/forms.py @@ -231,14 +231,14 @@ class UsuarioEditForm(ModelForm): ('email', 6), ('user_active', 6), ('password1', 6), - ('password2', 6))) + ('password2', 6), + ('roles', 12))) self.helper = SaplFormHelper() self.helper.layout = Layout( 'username', FieldWithButtons('token', StrictButton('Renovar', id="renovar-token", css_class="btn-outline-primary")), rows, - 'roles', form_actions(label='Salvar Alterações')) def clean(self): diff --git a/sapl/templates/crud/usuario_edit.html b/sapl/templates/crud/usuario_edit.html index dca9719d7..d922e68d4 100644 --- a/sapl/templates/crud/usuario_edit.html +++ b/sapl/templates/crud/usuario_edit.html @@ -2,7 +2,6 @@ {% load i18n %} {% block extra_js %} -