form->csrf() ?>
form->label(t('Username'), 'username') ?> form->text('username', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?> form->label(t('Name'), 'name') ?> form->text('name', $values, $errors) ?> form->label(t('Email'), 'email') ?> form->email('email', $values, $errors) ?>
form->checkbox('is_ldap_user', t('Remote user'), 1, isset($values['is_ldap_user']) && $values['is_ldap_user'] == 1) ?>

form->label(t('Password'), 'password') ?> form->password('password', $values, $errors) ?>

form->label(t('Confirmation'), 'confirmation') ?> form->password('confirmation', $values, $errors) ?>
form->label(t('Role'), 'role') ?> form->select('role', $roles, $values, $errors) ?> form->checkbox('disable_login_form', t('Disallow login form'), 1, isset($values['disable_login_form']) && $values['disable_login_form'] == 1) ?>
form->label(t('Timezone'), 'timezone') ?> form->select('timezone', $timezones, $values, $errors) ?> form->label(t('Language'), 'language') ?> form->select('language', $languages, $values, $errors) ?> form->label(t('Filter'), 'filter') ?> form->text('filter', $values, $errors) ?> form->checkbox('notifications_enabled', t('Enable email notifications'), 1, isset($values['notifications_enabled']) && $values['notifications_enabled'] == 1 ? true : false) ?>
form->label(t('Add this person to this project'), 'project_id') ?> form->select('project_id', $projects, $values, $errors) ?>
modal->submitButtons() ?>