From 17213da5ce60a3da19789cff14544d0a79ee2df1 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 24 Jun 2016 17:57:26 -0400 Subject: Use the same task form layout everywhere --- app/Template/user_creation/local.php | 46 +++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 22 deletions(-) (limited to 'app/Template/user_creation/local.php') diff --git a/app/Template/user_creation/local.php b/app/Template/user_creation/local.php index 4c224cec..059a0114 100644 --- a/app/Template/user_creation/local.php +++ b/app/Template/user_creation/local.php @@ -4,37 +4,39 @@
form->csrf() ?> -
- form->label(t('Username'), 'username') ?> - form->text('username', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?> +
+
+ 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('Name'), 'name') ?> + form->text('name', $values, $errors) ?> - form->label(t('Email'), 'email') ?> - form->email('email', $values, $errors) ?> + form->label(t('Email'), 'email') ?> + form->email('email', $values, $errors) ?> - form->label(t('Password'), 'password') ?> - form->password('password', $values, $errors, array('required')) ?> + form->label(t('Password'), 'password') ?> + form->password('password', $values, $errors, array('required')) ?> - form->label(t('Confirmation'), 'confirmation') ?> - form->password('confirmation', $values, $errors, array('required')) ?> -
+ form->label(t('Confirmation'), 'confirmation') ?> + form->password('confirmation', $values, $errors, array('required')) ?> +
-
- form->label(t('Add project member'), 'project_id') ?> - form->select('project_id', $projects, $values, $errors) ?> +
+ form->label(t('Add project member'), 'project_id') ?> + form->select('project_id', $projects, $values, $errors) ?> - form->label(t('Timezone'), 'timezone') ?> - form->select('timezone', $timezones, $values, $errors) ?> + 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('Language'), 'language') ?> + form->select('language', $languages, $values, $errors) ?> - form->label(t('Role'), 'role') ?> - form->select('role', $roles, $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('notifications_enabled', t('Enable email notifications'), 1, isset($values['notifications_enabled']) && $values['notifications_enabled'] == 1 ? true : false) ?> +
-- cgit v1.2.3