diff --git a/gulp/tasks/select2-css-lib.js b/gulp/tasks/select2-css-lib.js new file mode 100644 index 0000000..edb6dab --- /dev/null +++ b/gulp/tasks/select2-css-lib.js @@ -0,0 +1,8 @@ +var gulp = require('gulp'); +var rename = require('gulp-rename'); + +module.exports = function() { + return gulp.src('node_modules/select2/dist/css/select2.min.css') + .pipe(rename('select2.css')) + .pipe(gulp.dest('public/dist/css/lib')); +}; \ No newline at end of file diff --git a/gulp/tasks/select2-js-lib.js b/gulp/tasks/select2-js-lib.js new file mode 100644 index 0000000..49589e7 --- /dev/null +++ b/gulp/tasks/select2-js-lib.js @@ -0,0 +1,8 @@ +var gulp = require('gulp'); +var rename = require('gulp-rename'); + +module.exports = function() { + return gulp.src('node_modules/select2/dist/js/select2.min.js') + .pipe(rename('select2.js')) + .pipe(gulp.dest('public/dist/js/lib')); +}; \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js index 7244595..83f5857 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -12,7 +12,9 @@ let tasks = [ 'bootstrap-css-lib', 'bootstrap-fonts-lib', 'font-awesome-lib.js', - 'font-awesome-fonts-lib' + 'font-awesome-fonts-lib', + 'select2-css-lib', + 'select2-js-lib' ]; tasks.forEach(function(name) { @@ -38,5 +40,7 @@ gulp.task('default', [ 'bootstrap-css-lib', 'bootstrap-fonts-lib', 'font-awesome-lib.js', - 'font-awesome-fonts-lib' + 'font-awesome-fonts-lib', + 'select2-css-lib', + 'select2-js-lib' ]); diff --git a/package.json b/package.json index a06a86e..69acdff 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,8 @@ "rand-token": "^0.2.1", "react": "^15.4.1", "react-dom": "^15.4.1", - "redux": "^3.6.0" + "redux": "^3.6.0", + "select2": "^4.0.3" }, "eslintConfig": { "extends": "google", diff --git a/public/add-role.html b/public/add-role.html new file mode 100644 index 0000000..fb86c91 --- /dev/null +++ b/public/add-role.html @@ -0,0 +1,171 @@ + + + + + + + + Crun + + + + + + + + + + + + + + +
+
+
+
+ + + + +
+
+
+

Add Role

+
+
+ +
+ +
+
+
+ +
+
+
+ +
+
+ +
+
+ + +
+
+
+
+ +
+
+ +
+
+ + +
+
+
+
+ +
+
+ +
+
+
+
+
+
Roles
+
Command
+
Group
+
Execution
+
+
+
+
+
+ + + + + + + + + + diff --git a/public/add-user.html b/public/add-user.html new file mode 100644 index 0000000..ccc8481 --- /dev/null +++ b/public/add-user.html @@ -0,0 +1,133 @@ + + + + + + + + Crun + + + + + + + + + + + + + + +
+
+
+
+ + + + +
+
+
+

Add User

+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ +
+
+ +
+
+
+
+
+
Roles
+
Command
+
Group
+
Execution
+
+
+
+
+
+ + + + + + + + + + diff --git a/public/edit-user.html b/public/edit-user.html new file mode 100644 index 0000000..e177a51 --- /dev/null +++ b/public/edit-user.html @@ -0,0 +1,121 @@ + + + + + + + + Crun + + + + + + + + + + + + + + +
+
+
+
+ + + + +
+
+
+

Edit User

+
+
+ +
+ +
+
+
+
+ +
+
+ +
+
+
+
+
+
Roles
+
Command
+
Group
+
Execution
+
+
+
+
+
+ + + + + + + + + + diff --git a/public/index.html b/public/index.html index 194e82e..d83429e 100644 --- a/public/index.html +++ b/public/index.html @@ -108,7 +108,38 @@ -
Roles
+
+
+ + + + + + + + + + + + + +
NameCreated AtCreated ByAction
Admin01/01/2016John + + +
+ +
+
+ +
+
+ +
+
Command
Group
Execution
diff --git a/public/src/js/custom.js b/public/src/js/custom.js new file mode 100644 index 0000000..87da08d --- /dev/null +++ b/public/src/js/custom.js @@ -0,0 +1,6 @@ +$(document).ready(function(){ + + // temp function (ui purposes) + $('.select2').select2(); + +}); \ No newline at end of file