Form design for proxy hosts, audit log base
This commit is contained in:
@@ -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,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;
|
||||
|
||||
Reference in New Issue
Block a user