Editor - Settings - City Settings

It is the modal that opens when the function showCitySettings(city) is used in the view theme/editor/settings/includes/places.html. This shows the details of the city is used to add and modify cities

Main Models

  • curCity: This has the data of the city to which you want to see the details.
  • countries: It contains the countries list in an array, which is used to add it to the city.
  • users: This contains all the users, who must be filtered by level 1 to be city administrators.

Utility Function

  • updateCity(city): serves to update the data of a city
  • addCity(city): Add a city
  • hideCitySettings(): close this modal

Example of Base Theme

567

📘

SAVE button swicth to ADD button when curCity.id is -1