Editor - Create business
This view is a modal that opens with the function showCreateBusiness()
in the view theme/views/editor/listing-business.html This modal is used to enter the initial data needed to create a business.
Main Models
curBusiness
curBusiness.name
: name field the new businesscurBusiness.slug
: new business slug fieldcurBusiness.email
: new business emailcurBusiness.city_id
: field of the id of the new business citycurBusiness.address
: field of the direction of the new businesscities
: contains the cities of a project in an array
Utility Functions
hide()
: close this modalchangeCity(city_id)
saveAddress()
add()
: Save the new
To use the map in this view the following code is necessary
<div id="create-business-map" data-tap-disabled="true"></div>
Example of base theme
Updated almost 6 years ago