From efed94b23d592647f889ef03b144a91e8fbb6098 Mon Sep 17 00:00:00 2001 From: Florian Völker Date: Wed, 26 Jun 2019 14:58:47 +0200 Subject: Add "identifier" beside "name" while creating a new project --- app/Controller/ProjectCreationController.php | 3 ++- app/Template/project_creation/create.php | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Controller/ProjectCreationController.php b/app/Controller/ProjectCreationController.php index c471cfdd..b9458bdd 100644 --- a/app/Controller/ProjectCreationController.php +++ b/app/Controller/ProjectCreationController.php @@ -96,13 +96,14 @@ class ProjectCreationController extends BaseController $project = array( 'name' => $values['name'], 'is_private' => $values['is_private'], + 'identifier' => $values['identifier'], ); return $this->projectModel->create($project, $this->userSession->getId(), true); } /** - * Creatte from another project + * Create from another project * * @access private * @param array $values diff --git a/app/Template/project_creation/create.php b/app/Template/project_creation/create.php index 430a4bac..01952f14 100644 --- a/app/Template/project_creation/create.php +++ b/app/Template/project_creation/create.php @@ -10,6 +10,10 @@ form->label(t('Name'), 'name') ?> form->text('name', $values, $errors, array('autofocus', 'required')) ?> + form->label(t('Identifier'), 'identifier') ?> + form->text('identifier', $values, $errors, array('autofocus')) ?> +

+ 1): ?> form->label(t('Create from another project'), 'src_project_id') ?> form->select('src_project_id', $projects_list, $values, array(), array(), 'js-project-creation-select-options') ?> -- cgit v1.2.3