form->csrf() ?> form->hidden('id', $values) ?> form->label(t('Username'), 'username') ?> form->text('username', $values, $errors, array('required', $values['is_ldap_user'] == 1 ? 'readonly' : '', 'maxlength="50"')) ?>
form->label(t('Name'), 'name') ?> form->text('name', $values, $errors) ?>
form->label(t('Email'), 'email') ?> form->email('email', $values, $errors) ?>
form->label(t('Timezone'), 'timezone') ?> form->select('timezone', $timezones, $values, $errors) ?>
form->label(t('Language'), 'language') ?> form->select('language', $languages, $values, $errors) ?>
user->isAdmin()): ?> form->checkbox('is_admin', t('Administrator'), 1, isset($values['is_admin']) && $values['is_admin'] == 1) ?>
url->link(t('cancel'), 'user', 'show', array('user_id' => $user['id'])) ?>