Add new AddRemoveView view

Add a new view based on AssignRemove with extra features
and filtering. AddRemoveView also has two new buttons:
Add all, Remove all.

Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-02-12 03:34:14 -04:00
parent b633238610
commit dcd1af685a
3 changed files with 278 additions and 16 deletions

View File

@@ -39,7 +39,9 @@ class ChoiceForm(forms.Form):
}
)
selection = forms.MultipleChoiceField(widget=DisableableSelectWidget())
selection = forms.MultipleChoiceField(
required=False, widget=DisableableSelectWidget()
)
class FormOptions(object):