From e9fedf3e5cd63aea4da7a71f6647ee427c62fa49 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 5 Dec 2015 20:31:27 -0500 Subject: Rewrite of the authentication and authorization system --- app/Template/user/create_local.php | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'app/Template/user/create_local.php') diff --git a/app/Template/user/create_local.php b/app/Template/user/create_local.php index 6e6ca6ac..38bd7836 100644 --- a/app/Template/user/create_local.php +++ b/app/Template/user/create_local.php @@ -12,34 +12,35 @@
form->label(t('Username'), 'username') ?> - form->text('username', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?>
+ form->text('username', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?> form->label(t('Name'), 'name') ?> - form->text('name', $values, $errors) ?>
+ form->text('name', $values, $errors) ?> form->label(t('Email'), 'email') ?> - form->email('email', $values, $errors) ?>
+ form->email('email', $values, $errors) ?> form->label(t('Password'), 'password') ?> - form->password('password', $values, $errors, array('required')) ?>
+ form->password('password', $values, $errors, array('required')) ?> form->label(t('Confirmation'), 'confirmation') ?> - form->password('confirmation', $values, $errors, array('required')) ?>
+ form->password('confirmation', $values, $errors, array('required')) ?>
form->label(t('Add project member'), 'project_id') ?> - form->select('project_id', $projects, $values, $errors) ?>
+ form->select('project_id', $projects, $values, $errors) ?> form->label(t('Timezone'), 'timezone') ?> - form->select('timezone', $timezones, $values, $errors) ?>
+ form->select('timezone', $timezones, $values, $errors) ?> form->label(t('Language'), 'language') ?> - form->select('language', $languages, $values, $errors) ?>
+ form->select('language', $languages, $values, $errors) ?> + + form->label(t('Role'), 'role') ?> + form->select('role', $roles, $values, $errors) ?> form->checkbox('notifications_enabled', t('Enable email notifications'), 1, isset($values['notifications_enabled']) && $values['notifications_enabled'] == 1 ? true : false) ?> - form->checkbox('is_admin', t('Administrator'), 1, isset($values['is_admin']) && $values['is_admin'] == 1 ? true : false) ?> - form->checkbox('is_project_admin', t('Project Administrator'), 1, isset($values['is_project_admin']) && $values['is_project_admin'] == 1 ? true : false) ?>
-- cgit v1.2.3