|
|
@@ -1,6 +1,6 @@
|
|
|
const app = require('../app')
|
|
|
const _ = require('lodash')
|
|
|
-const { dashboardIcon, staffMemberIcon, staffingAgencyIcon, laborIcon } = require('../assets')
|
|
|
+const { dashboardIcon, staffMemberIcon, staffingAgencyIcon, laborIcon, retailerIcon } = require('../assets')
|
|
|
|
|
|
app.component('appUserAreaNav', {
|
|
|
template: html`
|
|
|
@@ -15,17 +15,31 @@ app.component('appUserAreaNav', {
|
|
|
</md-button>
|
|
|
</md-menu-item>
|
|
|
|
|
|
- <h3>Labor</h3>
|
|
|
- <md-menu-item ng-repeat="location in ctrl.locations">
|
|
|
- <md-button ng-href="/labor/{{location.key}}">
|
|
|
- <md-icon md-svg-icon="${laborIcon}"></md-icon>
|
|
|
- {{location.name}} Labor
|
|
|
- </md-button>
|
|
|
- </md-menu-item>
|
|
|
+ <div ng-repeat="location in ctrl.locations">
|
|
|
+ <h3>{{::location.name}}</h3>
|
|
|
+ <md-menu-item>
|
|
|
+ <md-button ng-href="/labor/{{::location.key}}">
|
|
|
+ <md-icon md-svg-icon="${laborIcon}"></md-icon>
|
|
|
+ {{::location.key}} Labor
|
|
|
+ </md-button>
|
|
|
+ </md-menu-item>
|
|
|
+ <md-menu-item>
|
|
|
+ <md-button ng-href="/staff-members/{{::location.key}}">
|
|
|
+ <md-icon md-svg-icon="${staffMemberIcon}"></md-icon>
|
|
|
+ {{::location.key}} Staff Members
|
|
|
+ </md-button>
|
|
|
+ </md-menu-item>
|
|
|
+ <md-menu-item>
|
|
|
+ <md-button ng-href="/retailers/{{::location.key}}">
|
|
|
+ <md-icon md-svg-icon="${retailerIcon}"></md-icon>
|
|
|
+ {{::location.key}} Retailers
|
|
|
+ </md-button>
|
|
|
+ </md-menu-item>
|
|
|
+ </div>
|
|
|
|
|
|
- <h3>Staff</h3>
|
|
|
+ <h3>All</h3>
|
|
|
<md-menu-item>
|
|
|
- <md-button ng-href="/staff-members">
|
|
|
+ <md-button ng-href="/staff-members/all">
|
|
|
<md-icon md-svg-icon="${staffMemberIcon}"></md-icon>
|
|
|
Staff Members
|
|
|
</md-button>
|
|
|
@@ -36,6 +50,12 @@ app.component('appUserAreaNav', {
|
|
|
Staffing Agencies
|
|
|
</md-button>
|
|
|
</md-menu-item>
|
|
|
+ <md-menu-item>
|
|
|
+ <md-button ng-href="/retailers/all">
|
|
|
+ <md-icon md-svg-icon="${retailerIcon}"></md-icon>
|
|
|
+ Retailers
|
|
|
+ </md-button>
|
|
|
+ </md-menu-item>
|
|
|
|
|
|
`,
|
|
|
controllerAs: 'ctrl',
|