formCsrf() ?> formHidden('id', $values) ?> formHidden('is_ldap_user', $values) ?> formLabel(t('Username'), 'username') ?> formText('username', $values, $errors, array('required', $values['is_ldap_user'] == 1 ? 'readonly' : '', 'maxlength="50"')) ?>
formLabel(t('Name'), 'name') ?> formText('name', $values, $errors) ?>
formLabel(t('Email'), 'email') ?> formEmail('email', $values, $errors) ?>
formLabel(t('Default project'), 'default_project_id') ?> formSelect('default_project_id', $projects, $values, $errors) ?>
formLabel(t('Timezone'), 'timezone') ?> formSelect('timezone', $timezones, $values, $errors) ?>
formLabel(t('Language'), 'language') ?> formSelect('language', $languages, $values, $errors) ?>
formCheckbox('disable_login_form', t('Disable login form'), 1, isset($values['disable_login_form']) && $values['disable_login_form'] == 1) ?>
userSession->isAdmin()): ?> formCheckbox('is_admin', t('Administrator'), 1, isset($values['is_admin']) && $values['is_admin'] == 1) ?>
a(t('cancel'), 'user', 'show', array('user_id' => $user['id'])) ?>