/**
 * @author monitour
 * created on 27.07.2017
 */
(function() {
    'use strict';

    angular.module('Monitour.pages.sites', [])
        .config(routeConfig);

    /** @ngInject */
    function routeConfig($stateProvider, $urlRouterProvider) {
        $stateProvider
            .state('main.sites', {
                url: '/sites',
                templateUrl: 'app/pages/sites/sites.html',
                title: 'Sites',
                abstract: true,
                sidebarMeta: {
                    icon: 'ion-gear-a',
                    order: 100,
                },
                authenticate: true
            })
            .state('main.sites.list', {
                url: '/sites/list',
                templateUrl: 'app/pages/sites/list/list.html',
                title: 'List',
                controller: 'sitesListCtrl',
                controllerAs: 'vm',
                sidebarMeta: {
                    icon: 'ion-stats-bars',
                    order: 150,
                },
                authenticate: true
            })
            .state('main.sites.new', {
                url: '/sites/new',
                templateUrl: 'app/pages/sites/new/new.html',
                title: 'Add',
                controller: 'sitesNewCtrl',
                controllerAs: 'vm',
                sidebarMeta: {
                    icon: 'ion-stats-bars',
                    order: 150,
                },
                authenticate: true
            })
            .state('main.sites.view', {
                url: '/sites/view/:id',
                title: 'View',
                controller: 'sitesViewCtrl',
                controllerAs: 'vm',
                templateUrl: 'app/pages/sites/view/view.html',

            })
            .state('main.sites.edit', {
                url: '/sites/edit/:id',
                title: 'Edit',
                controller: 'sitesEditCtrl',
                controllerAs: 'vm',
                templateUrl: 'app/pages/sites/edit/edit.html',

            });


    }

})();