Editor - Settings - Includes - Places
This view contains places in their different hierarchies Countries, Cities y dropdown options.
Controller: placesSettingsEditorCtrl
Main Model
countries
: bring with it all the countries of the databasecities
: Bring all the cities of all the countriesdropdownoptions
: It contains all the dropdown options
Models for filter
filterCit
: used to filter citiesfilterNeig
: used to filter the dropdown options
Utility functions
updateCountry(country)
: This function is used to update the countries shown in the viewaddCountry(country)
: It serves to add the country if it does not exist.removeCity(city)
: it serves to remove a city from the databaseshowCitySettings(city)
: Open a modal, this mode is used to add or update the information of a city.removeNeighborhood()
: this function is used to delete dropdown optionsshowNeighborhoodSettings()
: Open a modal, this modal serves to add or update dropdownoptions.updateNeighborhood()
: It is used to update dropdown option data in this view.
Example of base theme
- Cities: If something changes here, activate the function
updateCountry(country)
filterCit
- cities: If something changes here, activate the function
changeCity(city,true)
removeCity(city)
showCitySettings(city)
showCitySettings(curCity)
: but this for add a new city with the modelcurCity
- `filterNeig
Dropdownoptions
: If something changes here, activate the functionupdateNeighborhood(dropdownoption)
showNeighborhoodSettings(dropdownoption)
removeNeighborhood(dropdownoption)
showNeighborhoodSettings(dropdownoption)
but this for add a new dropdownoption with the modelcurNeighborhood
.
Updated almost 6 years ago