Browse Source

v0.1.1

tags/0.1.1^0
Robin Thoni 9 years ago
parent
commit
d61de68cb3
9 changed files with 18 additions and 16 deletions
  1. 2
    2
      app.js
  2. 1
    1
      css/css.css
  3. 2
    0
      index.html
  4. 1
    1
      views/home.html
  5. 1
    1
      views/login.html
  6. 3
    3
      views/modals/groupedit.html
  7. 2
    2
      views/modals/permissionedit.html
  8. 3
    3
      views/modals/useredit.html
  9. 3
    3
      views/navbar.html

+ 2
- 2
app.js
File diff suppressed because it is too large
View File


+ 1
- 1
css/css.css
File diff suppressed because it is too large
View File


+ 2
- 0
index.html View File

7
 
7
 
8
     <link rel="stylesheet" href="css/css.css">
8
     <link rel="stylesheet" href="css/css.css">
9
 
9
 
10
+
11
+
10
     <script src="app.js"></script>
12
     <script src="app.js"></script>
11
 </head>
13
 </head>
12
 <body lu-busy="body">
14
 <body lu-busy="body">

+ 1
- 1
views/home.html View File

56
             </div>
56
             </div>
57
 
57
 
58
             <div class="form-group col-sm-12">
58
             <div class="form-group col-sm-12">
59
-                <button class="btn btn-default">Edit</button>
59
+                <button class="btn btn-primary">Edit</button>
60
             </div>
60
             </div>
61
         </form>
61
         </form>
62
     </div>
62
     </div>

+ 1
- 1
views/login.html View File

13
 
13
 
14
                 <br />
14
                 <br />
15
                 <div class="col-sm-12 center-block">
15
                 <div class="col-sm-12 center-block">
16
-                    <button type="submit" class="btn btn-default center-block">Login</button>
16
+                    <button type="submit" class="btn btn-primary center-block">Login</button>
17
                 </div>
17
                 </div>
18
 
18
 
19
                 <br />
19
                 <br />

+ 3
- 3
views/modals/groupedit.html View File

2
     <div class="form-group">
2
     <div class="form-group">
3
         <label for="name" class="col-sm-2 control-label">Name</label>
3
         <label for="name" class="col-sm-2 control-label">Name</label>
4
         <div class="col-sm-9">
4
         <div class="col-sm-9">
5
-            <input id="name" class="form-control" ng-model="group.Name" required lu-enable-permission="{{ permission }}"/>
5
+            <input autofocus id="name" class="form-control" ng-model="group.Name" required lu-enable-permission="{{ permission }}"/>
6
         </div>
6
         </div>
7
     </div>
7
     </div>
8
     <div class="form-group">
8
     <div class="form-group">
9
         <div class="col-sm-2"></div>
9
         <div class="col-sm-2"></div>
10
-        <button type="button" class="btn btn-default"
10
+        <button type="button" class="btn btn-primary"
11
                 ng-click="editPermissions(group)" ng-show="canEditPermissions()">
11
                 ng-click="editPermissions(group)" ng-show="canEditPermissions()">
12
             Edit permissions
12
             Edit permissions
13
         </button>
13
         </button>
14
-        <button type="button" class="btn btn-default"
14
+        <button type="button" class="btn btn-primary"
15
                 ng-click="editUsers(group)" ng-show="canEditUsers()">
15
                 ng-click="editUsers(group)" ng-show="canEditUsers()">
16
             Edit users
16
             Edit users
17
         </button>
17
         </button>

+ 2
- 2
views/modals/permissionedit.html View File

2
     <div class="form-group">
2
     <div class="form-group">
3
         <label for="name" class="col-sm-2 control-label">Name</label>
3
         <label for="name" class="col-sm-2 control-label">Name</label>
4
         <div class="col-sm-9">
4
         <div class="col-sm-9">
5
-            <input id="name" class="form-control input-permission-name" ng-model="permission.Name" required ng-disabled="!permission.IsNew"/>
5
+            <input autofocus id="name" class="form-control input-permission-name" ng-model="permission.Name" required ng-disabled="!permission.IsNew"/>
6
         </div>
6
         </div>
7
     </div>
7
     </div>
8
     <div class="form-group">
8
     <div class="form-group">
9
         <label class="col-sm-2 control-label">Allowed</label>
9
         <label class="col-sm-2 control-label">Allowed</label>
10
         <div class="col-sm-9">
10
         <div class="col-sm-9">
11
             <div class="btn-group">
11
             <div class="btn-group">
12
-                <button class="btn btn-default dropdown-toggle btn-select" data-toggle="dropdown" href="" lu-enable-permission="{{ neededPermission }}">
12
+                <button type="button" class="btn btn-primary dropdown-toggle btn-select" data-toggle="dropdown" href="" lu-enable-permission="{{ neededPermission }}">
13
                     {{ permission.Value ? 'Yes' : 'No' }} <span class="caret"></span>
13
                     {{ permission.Value ? 'Yes' : 'No' }} <span class="caret"></span>
14
                 </button>
14
                 </button>
15
                 <ul class="dropdown-menu">
15
                 <ul class="dropdown-menu">

+ 3
- 3
views/modals/useredit.html View File

2
     <div class="form-group">
2
     <div class="form-group">
3
         <label for="username" class="col-sm-2 control-label">Username</label>
3
         <label for="username" class="col-sm-2 control-label">Username</label>
4
         <div class="col-sm-9">
4
         <div class="col-sm-9">
5
-            <input id="username" class="form-control" ng-model="user.Username" ng-readonly="user.Id != null" required/>
5
+            <input autofocus id="username" class="form-control" ng-model="user.Username" ng-readonly="user.Id != null" required/>
6
         </div>
6
         </div>
7
     </div>
7
     </div>
8
 
8
 
53
 
53
 
54
     <div class="form-group">
54
     <div class="form-group">
55
         <div class="col-sm-2"></div>
55
         <div class="col-sm-2"></div>
56
-        <button type="button" class="btn btn-default"
56
+        <button type="button" class="btn btn-primary"
57
                 ng-click="editPermissions(user)" ng-show="canEditPermissions()">
57
                 ng-click="editPermissions(user)" ng-show="canEditPermissions()">
58
             Edit permissions
58
             Edit permissions
59
         </button>
59
         </button>
60
-        <button type="button" class="btn btn-default" lu-show-permission="LU_PERM_EFFECTIVE_GET,LU_PERM_GET"
60
+        <button type="button" class="btn btn-info" lu-show-permission="LU_PERM_EFFECTIVE_GET,LU_PERM_GET"
61
                 ng-click="showEffectivePermissions(user)" ng-show="user.Id != null">
61
                 ng-click="showEffectivePermissions(user)" ng-show="user.Id != null">
62
             Show effective permissions
62
             Show effective permissions
63
         </button>
63
         </button>

+ 3
- 3
views/navbar.html View File

15
         <!-- Collect the nav links, forms, and other content for toggling -->
15
         <!-- Collect the nav links, forms, and other content for toggling -->
16
         <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
16
         <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
17
             <ul class="nav navbar-nav navbar-left">
17
             <ul class="nav navbar-nav navbar-left">
18
-                <li><a ui-sref="users" lu-show-permission="LU_USER_GET">Users</a></li>
19
-                <li><a ui-sref="groups" lu-show-permission="LU_GROUP_GET">Groups</a></li>
20
-                <li><a ui-sref="permissions" lu-show-permission="LU_PERM_GET">Permissions</a></li>
18
+                <li ui-sref-active="active"><a ui-sref="users" lu-show-permission="LU_USER_GET">Users</a></li>
19
+                <li ui-sref-active="active"><a ui-sref="groups" lu-show-permission="LU_GROUP_GET">Groups</a></li>
20
+                <li ui-sref-active="active"><a ui-sref="permissions" lu-show-permission="LU_PERM_GET">Permissions</a></li>
21
                 <!--<li><a ui-sref="test" >Test</a></li>-->
21
                 <!--<li><a ui-sref="test" >Test</a></li>-->
22
             </ul>
22
             </ul>
23
             <ul class="nav navbar-nav navbar-right">
23
             <ul class="nav navbar-nav navbar-right">

Loading…
Cancel
Save