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' : '')) ?>
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) ?>
userSession->isAdmin()): ?> formCheckbox('is_admin', t('Administrator'), 1, isset($values['is_admin']) && $values['is_admin'] == 1 ? true : false) ?>
a(t('cancel'), 'user', 'show', array('user_id' => $user['id'])) ?>