Editor - Listing business
This view contains all the business lists and allows to enable / disable, copy, delete and open the details of business edition
Main Models
filteredBusiness
: has all the business in an array filtered by the type of business, if the value offilterBusinessType
is""
then it will contain all types
Models For filter
filterBusinessType
: can take four values 'food', 'alcohol', 'groceries' and 'laundry' these change directly with the functionselectBusinessType
filterBusiness
: It serves to make an input to filter by business name
Utility Functions
selectBusinessType($event, type)
: changes the modelfilterBusinessType
and filted by business typecopy(business_id, $event)
: Copy the information of a businesschangeBusinessStatus(business)
: enable / disable a businessedit(slug)
: Access to a view with all the business informationdelete(business_id, $event)
: Serve to delete a businessshowCreateBusiness()
: shows a modal in which you enter the initial data to create a business
Example of base theme
changeBusinessStatus(business)
edit(slug)
copy(item.id, $event)
delete(business_id, $event)
showCreateBusiness()
Updated almost 6 years ago