<commit_before><?php
$this->Html->script('Croogo/Users.admin', ['block' => true]);

$this->extend('Croogo/Core./Common/admin_edit');

$this->Html->addCrumb(__d('croogo', 'Users'),
        ['plugin' => 'Croogo/Users', 'controller' => 'Users', 'action' => 'index']);

if ($this->request->param('action') == 'edit') {
    $this->Html->addCrumb($user->name, $this->request->here());
    $this->assign('title', __d('croogo', 'Edit user %s', $user->username));
} else {
    $this->assign('title', __d('croogo', 'New user'));
    $this->Html->addCrumb(__d('croogo', 'New user'), $this->request->here());
}

$this->start('actions');
if ($this->request->param('action') == 'edit'):
    echo $this->Croogo->adminAction(__d('croogo', 'Reset password'), ['action' => 'reset_password', $user->id]);
endif;
$this->end();

$this->append('form-start', $this->Form->create($user, [
    'fieldAccess' => [
        'User.role_id' => 1,
    ],
    'class' => 'protected-form',
]));

$this->append('tab-heading');
echo $this->Croogo->adminTab(__d('croogo', 'User'), '#user-main');
$this->end();

$this->append('tab-content');

echo $this->Html->tabStart('user-main');
echo $this->Form->input('username', [
    'label' => __d('croogo', 'Username'),
]);
echo $this->Form->input('name', [
    'label' => __d('croogo', 'Name'),
]);
echo $this->Form->input('email', [
    'label' => __d('croogo', 'Email'),
]);
echo $this->Form->input('website', [
    'label' => __d('croogo', 'Website'),
]);
echo $this->Form->input('timezone', [
    'type' => 'select',
    'empty' => true,
    'options' => DateTimeZone::listIdentifiers(),
    'label' => __d('croogo', 'Timezone'),
    'class' => 'c-select',
]);
echo $this->Form->input('role_id', [
    'label' => __d('croogo', 'Role'),<commit_msg>Fix incorrect options for timezone list<commit_after><?php
$this->Html->script('Croogo/Users.admin', ['block' => true]);

use Cake\I18n\Time;

$this->extend('Croogo/Core./Common/admin_edit');

$this->Html->addCrumb(__d('croogo', 'Users'),
        ['plugin' => 'Croogo/Users', 'controller' => 'Users', 'action' => 'index']);

if ($this->request->param('action') == 'edit') {
    $this->Html->addCrumb($user->name, $this->request->here());
    $this->assign('title', __d('croogo', 'Edit user %s', $user->username));
} else {
    $this->assign('title', __d('croogo', 'New user'));
    $this->Html->addCrumb(__d('croogo', 'New user'), $this->request->here());
}

$this->start('actions');
if ($this->request->param('action') == 'edit'):
    echo $this->Croogo->adminAction(__d('croogo', 'Reset password'), ['action' => 'reset_password', $user->id]);
endif;
$this->end();

$this->append('form-start', $this->Form->create($user, [
    'fieldAccess' => [
        'User.role_id' => 1,
    ],
    'class' => 'protected-form',
]));

$this->append('tab-heading');
echo $this->Croogo->adminTab(__d('croogo', 'User'), '#user-main');
$this->end();

$this->append('tab-content');

echo $this->Html->tabStart('user-main');
echo $this->Form->input('username', [
    'label' => __d('croogo', 'Username'),
]);
echo $this->Form->input('name', [
    'label' => __d('croogo', 'Name'),
]);
echo $this->Form->input('email', [
    'label' => __d('croogo', 'Email'),
]);
echo $this->Form->input('website', [
    'label' => __d('croogo', 'Website'),
]);
echo $this->Form->input('timezone', [
    'type' => 'select',
    'empty' => true,
    'options' => Time::listTimezones(),
    'label' => __d('croogo', 'Timezone'),
    'class' => 'c-select',
]);
echo $this->Form->input('role_id', [
    'label' => __d('croogo', 'Role'),
{'fraction_non_alphanumeric': 0.2849507735583685, 'fraction_numerical': 0.0011251758087201125, 'mean_word_length': 4.877685950413223, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 135, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4997276', 'n_tokens_mistral': 1274, 'n_tokens_neox': 1257, 'n_words': 206}