updating to use template URL helper function in routes

This commit is contained in:
Jared Tabor 2015-07-28 14:21:35 -07:00
parent d806318342
commit b2b867a529
5 changed files with 15 additions and 5 deletions

View File

@ -4,10 +4,12 @@
* All Rights Reserved
*************************************************/
import {templateUrl} from '../../shared/template-url/template-url.factory';
export default {
name: 'inventoryScriptsAdd',
route: '/inventory_scripts/add',
templateUrl: '/static/js/inventory-scripts/add/add.partial.html',
templateUrl: templateUrl('inventory-scripts/add/add'),
controller: 'addController',
resolve: {
features: ['FeaturesService', function(FeaturesService) {

View File

@ -4,10 +4,12 @@
* All Rights Reserved
*************************************************/
import {templateUrl} from '../../shared/template-url/template-url.factory';
export default {
name: 'inventoryScriptsEdit',
route: '/inventory_scripts/:inventory_script',
templateUrl: '/static/js/inventory-scripts/edit/edit.partial.html',
templateUrl: templateUrl('inventory-scripts/edit/edit'),
controller: 'editController',
resolve: {
features: ['FeaturesService', function(FeaturesService) {

View File

@ -4,10 +4,12 @@
* All Rights Reserved
*************************************************/
import {templateUrl} from '../../shared/template-url/template-url.factory';
export default {
name: 'inventoryScriptsList',
route: '/inventory_scripts',
templateUrl: '/static/js/inventory-scripts/list/list.partial.html',
templateUrl: templateUrl('inventory-scripts/list/list'),
controller: 'inventoryScriptsListController',
resolve: {
features: ['FeaturesService', function(FeaturesService) {

View File

@ -4,10 +4,12 @@
* All Rights Reserved
*************************************************/
import {templateUrl} from '../../shared/template-url/template-url.factory';
export default {
name: 'managementJobsList',
route: '/management_jobs',
templateUrl: '/static/js/management-jobs/list/list.partial.html',
templateUrl: templateUrl('management-jobs/list/list'),
controller: 'listController',
resolve: {
features: ['FeaturesService', function(FeaturesService) {

View File

@ -4,10 +4,12 @@
* All Rights Reserved
*************************************************/
import {templateUrl} from '../../shared/template-url/template-url.factory';
export default {
name: 'managementJobsSchedule',
route: '/management_jobs/:management_job/schedules',
templateUrl: '/static/js/management-jobs/schedule/schedule.partial.html',
templateUrl: templateUrl('management-jobs/schedule/schedule'),
controller: 'scheduleController',
resolve: {
features: ['FeaturesService', function(FeaturesService) {