|
|
@ -34,7 +34,7 @@ class ActionField(forms.MultipleChoiceField):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class AssetPermissionForm(OrgModelForm):
|
|
|
|
class AssetPermissionForm(OrgModelForm):
|
|
|
|
action = ActionField()
|
|
|
|
actions = ActionField()
|
|
|
|
|
|
|
|
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
|
|
super().__init__(*args, **kwargs)
|
|
|
|
super().__init__(*args, **kwargs)
|
|
|
@ -73,7 +73,6 @@ class AssetPermissionForm(OrgModelForm):
|
|
|
|
'system_users': forms.SelectMultiple(
|
|
|
|
'system_users': forms.SelectMultiple(
|
|
|
|
attrs={'class': 'select2', 'data-placeholder': _('System user')}
|
|
|
|
attrs={'class': 'select2', 'data-placeholder': _('System user')}
|
|
|
|
),
|
|
|
|
),
|
|
|
|
'actions': forms.CheckboxSelectMultiple()
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
labels = {
|
|
|
|
labels = {
|
|
|
|
'nodes': _("Node"),
|
|
|
|
'nodes': _("Node"),
|
|
|
|