mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 20:31:31 +02:00
Get a nice history for admin_cmd_edit_user
This commit is contained in:
parent
fa48e1db3c
commit
ee70e699e2
@ -1306,6 +1306,16 @@ abstract class admin_cmd
|
|||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return widget types (indexed by field key) for changes
|
||||||
|
* Used by historylog widget to show the changes the command recorded.
|
||||||
|
*/
|
||||||
|
function get_change_widgets()
|
||||||
|
{
|
||||||
|
// TODO: Some kind of regex?
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Read change labels from descriptions in template:
|
* Read change labels from descriptions in template:
|
||||||
* - <description value="Expires" for="account_expires"/>
|
* - <description value="Expires" for="account_expires"/>
|
||||||
|
@ -233,7 +233,28 @@ class admin_cmd_edit_user extends admin_cmd_change_pw
|
|||||||
*/
|
*/
|
||||||
function get_change_labels()
|
function get_change_labels()
|
||||||
{
|
{
|
||||||
return $this->change_labels_from_template('admin.account');
|
$labels = $this->change_labels_from_template('admin.account');
|
||||||
|
$labels += array(
|
||||||
|
'account_firstname' => 'First name',
|
||||||
|
'account_lastname' => 'Last name',
|
||||||
|
'account_email' => 'Email',
|
||||||
|
'account_passwd_2' => false
|
||||||
|
);
|
||||||
|
return $labels;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return list of widgets to use for displaying changes
|
||||||
|
*/
|
||||||
|
function get_change_widgets() {
|
||||||
|
$widgets = parent::get_change_widgets();
|
||||||
|
|
||||||
|
$widgets += array(
|
||||||
|
'account_primary_group' => 'select-account',
|
||||||
|
'account_groups' => 'select-account',
|
||||||
|
'account_expires' => 'date-time'
|
||||||
|
);
|
||||||
|
return $widgets;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
<description/>
|
<description/>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<description value="Groups" for="groups"/>
|
<description value="Groups" for="account_groups"/>
|
||||||
<select-account account_type="groups" id="account_groups" multiple="true" class="et2_fullWidth" span="4" tags="true"/>
|
<select-account account_type="groups" id="account_groups" multiple="true" class="et2_fullWidth" span="4" tags="true"/>
|
||||||
<description/>
|
<description/>
|
||||||
</row>
|
</row>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user