Form design for proxy hosts, audit log base

This commit is contained in:
Jamie Curnow
2018-07-16 17:00:52 +10:00
parent 74d2238010
commit c5450eaa1a
29 changed files with 646 additions and 121 deletions
+5 -2
View File
@@ -14,8 +14,11 @@
</span>
</a>
<div class="dropdown-menu dropdown-menu-right dropdown-menu-arrow">
<a class="dropdown-item profile" href="/profile">
<i class="dropdown-icon fe fe-user"></i> Profile
<a class="dropdown-item edit-details" href="#">
<i class="dropdown-icon fe fe-user"></i> Edit Details
</a>
<a class="dropdown-item change-password" href="#">
<i class="dropdown-icon fe fe-lock"></i> Change Password
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item logout" href="/logout">
+13 -4
View File
@@ -13,10 +13,22 @@ module.exports = Mn.View.extend({
template: template,
ui: {
link: 'a'
link: 'a',
details: 'a.edit-details',
password: 'a.change-password'
},
events: {
'click @ui.details': function (e) {
e.preventDefault();
Controller.showUserForm(Cache.User);
},
'click @ui.password': function (e) {
e.preventDefault();
Controller.showUserPasswordForm(Cache.User);
},
'click @ui.link': function (e) {
e.preventDefault();
let href = $(e.currentTarget).attr('href');
@@ -25,9 +37,6 @@ module.exports = Mn.View.extend({
case '/':
Controller.showDashboard();
break;
case '/profile':
Controller.showProfile();
break;
case '/logout':
Controller.logout();
break;