forked from CakeDC/users
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin_edit.ctp
More file actions
34 lines (34 loc) · 1.12 KB
/
Copy pathadmin_edit.ctp
File metadata and controls
34 lines (34 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/**
* Copyright 2009 - 2018, Cake Development Corporation (http://cakedc.com)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2009 - 2018, Cake Development Corporation (http://cakedc.com)
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
?>
<div class="users form">
<?php echo $this->Form->create($model); ?>
<fieldset>
<legend><?php echo __d('users', 'Edit User'); ?></legend>
<?php
echo $this->Form->input('id');
echo $this->Form->input('username', [
'label' => __d('users', 'Username')]);
echo $this->Form->input('email', [
'label' => __d('users', 'Email')]);
if (!empty($roles)) {
echo $this->Form->input('role', [
'label' => __d('users', 'Role'), 'values' => $roles]);
}
echo $this->Form->input('is_admin', [
'label' => __d('users', 'Is Admin')]);
echo $this->Form->input('active', [
'label' => __d('users', 'Active')]);
?>
</fieldset>
<?php echo $this->Form->end('Submit'); ?>
</div>
<?php echo $this->element('Users.Users/admin_sidebar'); ?>