Editor - Settings - Drivergroup Settings

This modal is the one that opens when the function showDrivergroupSettings is used in the view theme/views/editor/settings/includes/drivers.html

Main Models

  • curDrivergroup: contains the details of the group of drivers in this view
  • drivermanagers: contains Driver administrators in an array
  • drivers: contains all the drivers in an array.
  • business: contains all the businesses in an array.

Utility Functions

  • hideDrivergroupSettings(): it serves to close the modal
  • save(): This serves to update the group data that is currently open in this modal.
  • toggleAllDrivers(): This is used to select or de-select all the drivers in a single package for the group of drivers
  • toggleDriver(): This serves to select or deselect all drivers in a single package for the group of drivers
  • toggleAllBusiness(): This serves to select or deselect all drivers in a single package for the group of drivers
  • toggleBusiness(): Used to select or deselect individually a group of drivers
  • add(): It serves to add a new group of drivers

Example of base theme

  1. drivermanagers: Listed to select one for curDrivergroup.administrator_id
  2. curDrivergroup.name
  3. toggleAllDrivers()
  4. toggleDriver()
  5. toggleAllBusiness()
  6. toggleBusiness()