Editor - Settings - Drivertype settings
This view is the one that opens when the showDriverSettings(driver)
or showDrivermanagerSettings(drivermanager)
function is used in the view theme/views/editor/settings/includes/drivers.html and allows to add or modify drivers and driver managers
Main Models
curDriverType
: it has the user's data that they load in this view, whether it is a driver or driver administratorcountries
: contains all the countries in an arraycities
: it contains all cities in an array
Utility Functions
hideDrivertypeSettings()
: this function serves to close the modal and restart the modeldriverType
changeAddress()
:updateUser(user)
: it is used to update information of a driver or a driver manageraddUser(user)
: it is useful to add a new driver manager or a driver
Example of base theme
countries
: listed to select a value forcurDriverType.country_id
cities
: listed to select a value forcurDriverType.country_id
these are filter by country
Updated almost 6 years ago