Editor - business info
This view is a modal from which all the information of a business is handled, it is opened with the function showBusinessInfo()
in the view theme/editor/business.html
Main Models
curProvider
: The business owner te value is an integer (user_id
)deal.food
: Boolean, to mark if the business is of type comidadeal.alcohol
: Boolean, to mark if the business is of type alcoholdeal.groceries
: Boolean, to mark if the business is of type groceriesdeal.laundry
: Boolean, to mark if the business is of type Laundryusers
: you contain all the users in an array, according to their use they are filtered by type 0 or type 2deal.city_id
: Int, mark the id of the business citycities
: contains all project cities in an array used to selectdeal.city_id
deal
.address: business addressdeal.about
: short description about businessdeal.description
: long description about businessdeal.gallery
: contains images and videos of the business.
Utility Functions
hideBusinessInfo()
: close this modalchangeCollapse(tab)
: It serves to section all the contents by tab or accordions.changeBusinessOwner(curProvider)
: Assign a business owner to the businesschangeTypes()
: update the type of business among the 4 existing optionschangeCity(city)
: update the business citysaveAddress()
: update the business addresschangeAbout()
: update the short description and the long description of the businessremoveGallery(item)
: delete an item from the gallery and to a video or an imageaddVideoGallery()
: Add a video to the gallery.
Example of base theme
Updated almost 6 years ago