Class: LocationController

LocationController()

HTTP handlers for locations.

Constructor

new LocationController()

Source:

Members

formValidation :Array.<express.RequestHandler>

Validation for the location management form. Field rules run for create and update only; limits match the locations table columns.

Type:
  • Array.<express.RequestHandler>
Source:

routes :express.Router

Type:
  • express.Router
Source:

Methods

(static) handleLocationManagement()

Creates, updates or deletes a location from the validated management form.

Source:

(static) viewLocationDetails()

Source:

(static) viewLocationList()

Source:

(static) viewLocationManagement()

Renders the location management page with a filtered, sorted and paginated location list. Loads the location in the URL into the edit form, even when it is not on the current page.

Source:

(static) viewLocationSales()

Source: