From abcfd02067b348e1c86f61e7545b93f87ea89569 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 24 Jan 2016 18:15:21 -0500 Subject: Split project edition into multiple pages --- app/Template/project_edit/general.php | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 app/Template/project_edit/general.php (limited to 'app/Template/project_edit/general.php') diff --git a/app/Template/project_edit/general.php b/app/Template/project_edit/general.php new file mode 100644 index 00000000..1da913da --- /dev/null +++ b/app/Template/project_edit/general.php @@ -0,0 +1,35 @@ + +
+ form->csrf() ?> + form->hidden('id', $values) ?> + + form->label(t('Name'), 'name') ?> + form->text('name', $values, $errors, array('required', 'maxlength="50"')) ?> + + form->label(t('Identifier'), 'identifier') ?> + form->text('identifier', $values, $errors, array('maxlength="50"')) ?> +

+ +
+
+ form->label(t('Project owner'), 'owner_id') ?> + form->select('owner_id', $owners, $values, $errors) ?> +
+ + user->hasProjectAccess('project', 'create', $project['id'])): ?> +
+ form->checkbox('is_private', t('Private project'), 1, $project['is_private'] == 1) ?> +

+ + +
+ +
+
-- cgit v1.2.3