Add "identifier" beside "name" while creating a new project
This commit is contained in:
@@ -96,13 +96,14 @@ class ProjectCreationController extends BaseController
|
|||||||
$project = array(
|
$project = array(
|
||||||
'name' => $values['name'],
|
'name' => $values['name'],
|
||||||
'is_private' => $values['is_private'],
|
'is_private' => $values['is_private'],
|
||||||
|
'identifier' => $values['identifier'],
|
||||||
);
|
);
|
||||||
|
|
||||||
return $this->projectModel->create($project, $this->userSession->getId(), true);
|
return $this->projectModel->create($project, $this->userSession->getId(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creatte from another project
|
* Create from another project
|
||||||
*
|
*
|
||||||
* @access private
|
* @access private
|
||||||
* @param array $values
|
* @param array $values
|
||||||
|
|||||||
@@ -10,6 +10,10 @@
|
|||||||
<?= $this->form->label(t('Name'), 'name') ?>
|
<?= $this->form->label(t('Name'), 'name') ?>
|
||||||
<?= $this->form->text('name', $values, $errors, array('autofocus', 'required')) ?>
|
<?= $this->form->text('name', $values, $errors, array('autofocus', 'required')) ?>
|
||||||
|
|
||||||
|
<?= $this->form->label(t('Identifier'), 'identifier') ?>
|
||||||
|
<?= $this->form->text('identifier', $values, $errors, array('autofocus')) ?>
|
||||||
|
<p class="form-help"><?= t('The project identifier is optional and must be alphanumeric, example: MYPROJECT.') ?></p>
|
||||||
|
|
||||||
<?php if (count($projects_list) > 1): ?>
|
<?php if (count($projects_list) > 1): ?>
|
||||||
<?= $this->form->label(t('Create from another project'), 'src_project_id') ?>
|
<?= $this->form->label(t('Create from another project'), 'src_project_id') ?>
|
||||||
<?= $this->form->select('src_project_id', $projects_list, $values, array(), array(), 'js-project-creation-select-options') ?>
|
<?= $this->form->select('src_project_id', $projects_list, $values, array(), array(), 'js-project-creation-select-options') ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user