Blame view

app/scripts/config.js 2.53 KB
e4e496d13   Rishav   setup admin acufu...
1
  /**
9835dbe3e   Rishav   module name changes
2
   * Acuefuel - Responsive Admin Theme
e4e496d13   Rishav   setup admin acufu...
3
   *
9835dbe3e   Rishav   module name changes
4
   * Acuefuel theme use AngularUI Router to manage routing and views
e4e496d13   Rishav   setup admin acufu...
5
6
7
8
9
   * Each view are defined as state.
   * Initial there are written stat for all view in theme.
   *
   */
  function config($stateProvider, $urlRouterProvider) {
5c6477d3d   Rishav   Admin Acufuel set...
10
      $urlRouterProvider.otherwise("/login");
e4e496d13   Rishav   setup admin acufu...
11
12
13
  
      $stateProvider
  
5c6477d3d   Rishav   Admin Acufuel set...
14
15
16
17
18
19
20
          .state('login', {
              //abstract: true,
              url: "/login",
              templateUrl: "views/login/login.html",
              controller: 'LoginController'
          })
  
e4e496d13   Rishav   setup admin acufu...
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
          .state('index', {
              abstract: true,
              url: "/index",
              templateUrl: "views/common/content.html",
          })
          .state('index.dashboard', {
              url: "/dashboard",
              templateUrl: "views/fbo-admin/dashboard.html",
              controller: 'DashboardController'
          })
          .state('index.flight', {
              url: "/flight",
              templateUrl: "views/fbo-flight/flight.html",
              controller: 'FlightDeptController'
          })
5c6477d3d   Rishav   Admin Acufuel set...
36
37
38
39
40
          .state('index.updateAirports', {
              url: "/updateAirports",
              templateUrl: "views/update-airports/update-airports.html",
              controller: 'updateAirportController'
          })
e4e496d13   Rishav   setup admin acufu...
41
42
43
44
45
          .state('index.minor', {
              url: "/minor",
              templateUrl: "views/minor.html",
              data: { pageTitle: 'Example view' }
          })
7379f005b   Rishav   FBO client page d...
46
47
48
49
50
          .state('index.updateFBO', {
              url: "/updateFBO/:id",
              templateUrl: "views/updateAllFBO/updateAllFBO.html",
              controller: 'updateAllFBOController'
          })
a80703599   Rishav   FBO department fu...
51
52
53
54
55
          .state('index.updateFBODept', {
              url: "/updateFBODept/:id",
              templateUrl: "views/updateFBODept/updateFBODept.html",
              controller: 'updateFBODeptController'
          })
20857569f   Rishav   update pages as r...
56
57
58
59
60
61
62
          // .state('index.fboClients', {
          //     url: "/fboClients",
          //     templateUrl: "views/fbo-Clients/fboClients.html",
          //     controller: 'fboClientsController'
          // })
          .state('index.fboAdmin', {
              url: "/fboAdmin",
7379f005b   Rishav   FBO client page d...
63
64
65
              templateUrl: "views/fbo-Clients/fboClients.html",
              controller: 'fboClientsController'
          })
20857569f   Rishav   update pages as r...
66
67
68
69
70
          .state('index.flightDept', {
              url: "/flightDept",
              templateUrl: "views/flightDept/flightDept.html",
              controller: 'flightDeptController'
          })
e4e496d13   Rishav   setup admin acufu...
71
72
  }
  angular
9835dbe3e   Rishav   module name changes
73
      .module('acuefuel')
e4e496d13   Rishav   setup admin acufu...
74
75
76
77
      .config(config)
      .run(function($rootScope, $state) {
          $rootScope.$state = $state;
      });