Fix size of roles multi-select when editing user
i.e. for buefy themes
This commit is contained in:
parent
54f1a52ed0
commit
560575e53f
|
@ -66,6 +66,7 @@
|
||||||
placeholder '(please choose)';
|
placeholder '(please choose)';
|
||||||
class string: form-control ${css_class or ''};
|
class string: form-control ${css_class or ''};
|
||||||
:multiple str(multiple).lower();
|
:multiple str(multiple).lower();
|
||||||
|
native-size size;
|
||||||
style style;
|
style style;
|
||||||
v-model vmodel;
|
v-model vmodel;
|
||||||
@input input_handler;">
|
@input input_handler;">
|
||||||
|
|
|
@ -217,6 +217,8 @@ class UserView(PrincipalMasterView):
|
||||||
size = len(roles)
|
size = len(roles)
|
||||||
if size < 3:
|
if size < 3:
|
||||||
size = 3
|
size = 3
|
||||||
|
elif size > 20:
|
||||||
|
size = 20
|
||||||
f.set_widget('roles', dfwidget.SelectWidget(multiple=True,
|
f.set_widget('roles', dfwidget.SelectWidget(multiple=True,
|
||||||
size=size,
|
size=size,
|
||||||
values=role_values))
|
values=role_values))
|
||||||
|
|
Loading…
Reference in a new issue