2015-01-23 13:09:30 +00:00
|
|
|
|
2016-09-26 09:28:47 +00:00
|
|
|
Hedera.Users = new Class
|
2015-01-23 13:09:30 +00:00
|
|
|
({
|
2016-09-26 09:28:47 +00:00
|
|
|
Extends: Hedera.Form
|
2015-01-23 13:09:30 +00:00
|
|
|
|
2015-12-02 17:26:58 +00:00
|
|
|
,onAccessLogClick: function (button, form)
|
2015-01-23 13:09:30 +00:00
|
|
|
{
|
|
|
|
this.hash.set ({
|
2015-02-01 03:21:54 +00:00
|
|
|
'form': 'admin/access-log'
|
2015-12-02 17:26:58 +00:00
|
|
|
,'user': form.get ('id')
|
2015-01-23 13:09:30 +00:00
|
|
|
});
|
|
|
|
}
|
2015-11-30 16:46:24 +00:00
|
|
|
|
2017-11-27 15:27:13 +00:00
|
|
|
,rendererFunc: function (scope, form)
|
2015-11-30 16:46:24 +00:00
|
|
|
{
|
2017-11-27 15:27:13 +00:00
|
|
|
var isEnabled = form.get('active')
|
|
|
|
scope.$('disabled').style.display = isEnabled ?
|
|
|
|
'none' : 'block';
|
|
|
|
scope.$('impersonate').node.style.display = isEnabled ?
|
|
|
|
'block' : 'none';
|
|
|
|
}
|
2017-11-27 13:53:38 +00:00
|
|
|
|
2017-11-27 15:27:13 +00:00
|
|
|
,onChangeUserClick: function (button, form)
|
|
|
|
{
|
|
|
|
this.gui.supplantUser (form.get ('name'),
|
|
|
|
this.onUserSupplant.bind (this));
|
2015-11-30 16:46:24 +00:00
|
|
|
}
|
2015-01-23 13:09:30 +00:00
|
|
|
|
2015-11-30 16:46:24 +00:00
|
|
|
,onUserSupplant: function (userName)
|
2015-01-23 13:09:30 +00:00
|
|
|
{
|
2015-02-01 03:21:54 +00:00
|
|
|
this.hash.set ({'form': 'ecomerce/orders'});
|
2015-01-23 13:09:30 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|