diff --git a/app/components/users/usersController.js b/app/components/users/usersController.js
index 5fd53e84e..7fb8e89b2 100644
--- a/app/components/users/usersController.js
+++ b/app/components/users/usersController.js
@@ -14,7 +14,7 @@ function ($scope, $state, UserService, ModalService, Messages, Pagination) {
Username: '',
Password: '',
ConfirmPassword: '',
- Role: 2,
+ Administrator: false,
};
$scope.order = function(sortType) {
@@ -59,7 +59,7 @@ function ($scope, $state, UserService, ModalService, Messages, Pagination) {
$scope.state.userCreationError = '';
var username = $scope.formValues.Username;
var password = $scope.formValues.Password;
- var role = $scope.formValues.Role;
+ var role = $scope.formValues.Administrator ? 1 : 2;
UserService.createUser(username, password, role)
.then(function success(data) {
Messages.send("User created", username);
diff --git a/app/components/volumes/volumes.html b/app/components/volumes/volumes.html
index 24a3cd550..6a6fcbd42 100644
--- a/app/components/volumes/volumes.html
+++ b/app/components/volumes/volumes.html
@@ -25,7 +25,7 @@
diff --git a/assets/css/app.css b/assets/css/app.css
index 4371ab229..b26bc7bc5 100644
--- a/assets/css/app.css
+++ b/assets/css/app.css
@@ -57,9 +57,16 @@ html, body, #content-wrapper, .page-content, #view {
margin-left: 5px;
}
+.form-section-title {
+ border-bottom: 1px solid #777;
+ margin-top: 5px;
+ margin-bottom: 15px;
+ color: #777;
+}
+
.form-horizontal .control-label.text-left{
- text-align: left;
- font-size: 0.9em;
+ text-align: left;
+ font-size: 0.9em;
}
input[type="checkbox"] {
@@ -301,39 +308,76 @@ ul.sidebar .sidebar-list a.active {
background: #2d3e63;
}
+@media(min-width: 768px) and (max-width: 992px) {
+ .margin-sm-top {
+ margin-top: 5px;
+ }
+}
@media (min-width: 768px) {
- .pull-sm-left {
- float: left !important;
- }
- .pull-sm-right {
- float: right !important;
- }
- .pull-sm-none {
- float: none !important;
- }
+ .pull-sm-left {
+ float: left !important;
+ }
+ .pull-sm-right {
+ float: right !important;
+ }
+ .pull-sm-none {
+ float: none !important;
+ }
}
@media (min-width: 992px) {
- .pull-md-left {
- float: left !important;
- }
- .pull-md-right {
- float: right !important;
- }
- .pull-md-none {
- float: none !important;
- }
+ .pull-md-left {
+ float: left !important;
+ }
+ .pull-md-right {
+ float: right !important;
+ }
+ .pull-md-none {
+ float: none !important;
+ }
}
@media (min-width: 1200px) {
- .pull-lg-left {
- float: left !important;
- }
- .pull-lg-right {
- float: right !important;
- }
- .pull-lg-none {
- float: none !important;
- }
+ .pull-lg-left {
+ float: left !important;
+ }
+ .pull-lg-right {
+ float: right !important;
+ }
+ .pull-lg-none {
+ float: none !important;
+ }
}
.pull-none {
- float: none !important;
+ float: none !important;
+}
+
+.switch input {
+ display: none;
+}
+
+.switch i {
+ display: inline-block;
+ vertical-align: middle;
+ cursor: pointer;
+ padding-right: 24px;
+ transition: all ease 0.2s;
+ -webkit-transition: all ease 0.2s;
+ border-radius: 24px;
+ box-shadow: inset 0 0 1px 1px rgba(0,0,0,.5);
+}
+
+.switch i:before {
+ display: block;
+ content: '';
+ width: 24px;
+ height: 24px;
+ border-radius: 24px;
+ background: white;
+ box-shadow: 0 0 1px 1px rgba(0,0,0,.5);
+}
+
+.switch :checked + i {
+ padding-right: 0;
+ padding-left: 24px;
+ -webkit-box-shadow: inset 0 0 1px rgba(0,0,0,.5), inset 0 0 40px #337ab7;
+ box-shadow: inset 0 0 1px rgba(0,0,0,.5), inset 0 0 40px #337ab7;
}