Update users navigation section
- Changed the section name to be access-control
- Moved LDAP Settings and Certificate Management to access-control navigation
- Changed Manage User Account subsection name to Local User Management
Resolves: openbmc/phosphor-webui#619
Signed-off-by: Mira Murali <miramurali23@gmail.com>
Signed-off-by: Derick Montague <derick.montague@ibm.com>
Change-Id: I0d94c80c295b997d94c04330fd87f4fc4d229bf8
diff --git a/app/access-control/index.js b/app/access-control/index.js
new file mode 100644
index 0000000..45668ed
--- /dev/null
+++ b/app/access-control/index.js
@@ -0,0 +1,41 @@
+/**
+ * A module for the access control
+ *
+ * @module app/access-control/index
+ * @exports app/access-control/index
+ */
+
+window.angular && (function(angular) {
+ 'use strict';
+
+ angular
+ .module('app.accessControl', ['ngRoute', 'app.common.services'])
+ // Route access-control
+ .config([
+ '$routeProvider',
+ function($routeProvider) {
+ $routeProvider
+ .when('/access-control', {
+ 'template': require('./controllers/ldap-controller.html'),
+ 'controller': 'ldapController',
+ authenticated: true
+ })
+ .when('/access-control/ldap', {
+ 'template': require('./controllers/ldap-controller.html'),
+ 'controller': 'ldapController',
+ authenticated: true
+ })
+ .when('/access-control/local-users', {
+ 'template': require('./controllers/user-controller.html'),
+ 'controller': 'userController',
+ authenticated: true
+ })
+ .when('/access-control/ssl-certificates', {
+ 'template':
+ require('./controllers/certificate-controller.html'),
+ 'controller': 'certificateController',
+ authenticated: true
+ });
+ }
+ ]);
+})(window.angular);