Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FilteredSelectMultiple Functionality #57

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

danieloaiza
Copy link

@danieloaiza danieloaiza commented Apr 5, 2023

Created a new widget that have the FilteredSelectMultiple functionality, working with MultipleChoiceField, ModelMultipleChoiceField. This widget can process data for multiple choice fields, using API or default model data. The configuration of this widget is documented in the select2box.rst file. The url used to access the demo of this widget is select2boxpg/, from there you can create a new people group using the widget or edit an existing one.

Usage:

  • For multiple selects, highlight the values you want selected, then press the arrow pointing right or viceversa depending on which data is been selected.

  • For a single select, a double click on top of the desired value will select it and move it to the selected box.

The following tasks where done in order to guarantee the proper functionality of the widget:

  • Added select2box.js to the base folder.
  • Package that contains forms.py and views.py for the demo of the select2box widget.
  • Include select2box class in djgentelella/widgets/core.py for attr configuration.
  • Added select2box.js to the createbasejs.py.
  • Create a template for the select2box widget.
  • Create a template for the modal used in the select2box widget for data creation.
  • Selenium testing for the select2box widget.
  • Responsive testing for the select2box widget.
  • Documentation for the configuration of the select2box widget and its inclusion in the advancedwidgets.rst file.

Fixed an issue with the people_group_list.html that prevented a proper data showing in the demo interface.

Added translation commands to the Readme.rst file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant