Editor - Settings - Includes - Users
This view is where you can add "special" users such as Administrators, business owners, city manager. in summary, it is a user administrator view. When listing a large amount of data it is advisable to make pagination.
Controller: usersSettingsEditorCtrl
Main Models
curTab
: In the view these are classified by which this model has 4 states ‘users’, 'owners', 'citymanager' y 'administrators'.filtered
: This contains the filtered users, and the filtering depends oncurTab
Models to filter
filter
: this serves to filter users
Utility Functions
changeTap(tap, event)
: this function changes the status of curTap depending on what is sent in the parameter tap.removeUser(user)
: it serves to remove a user from the database.showUserSettings(user)
: this function opens a modal, this modal is used to add or modify a user. the modal that opens this function is theme/views/editor/settings/user-settings.htmlchangeUserData(user)
: It serves to update the basic information of a user.
Example of base theme
- TAP section: if click in any activate te función changeTap and firter de users again
filtered
: list the user by tab, any change here activate the function changeUserDatachangeUserData(user)
: when enabled/disabledshowUserSettings(user)
removeUser(user)
curUser
7.showUserSettings
: but to add new user with the modelcurUser
Updated almost 6 years ago