When creating a new project, have the possibility to select another project to duplicate
This commit is contained in:
@@ -10,13 +10,17 @@
|
||||
|
||||
<?= $this->form->csrf() ?>
|
||||
|
||||
<?php if ($project['is_private'] == 0): ?>
|
||||
<?= $this->form->checkbox('projectPermission', t('Permissions'), 1, true) ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?= $this->form->checkbox('category', t('Categories'), 1, true) ?>
|
||||
<?= $this->form->checkbox('action', t('Actions'), 1, true) ?>
|
||||
<?= $this->form->checkbox('swimlane', t('Swimlanes'), 1, false) ?>
|
||||
<?= $this->form->checkbox('task', t('Tasks'), 1, false) ?>
|
||||
|
||||
<div class="form-actions">
|
||||
<input type="submit" value="<?= t('Duplicate') ?>" class="btn btn-red"/>
|
||||
<input type="submit" value="<?= t('Duplicate') ?>" class="btn btn-red">
|
||||
<?= t('or') ?> <?= $this->url->link(t('cancel'), 'project', 'show', array('project_id' => $project['id'])) ?>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
<section id="main">
|
||||
<div class="page-header">
|
||||
<ul>
|
||||
<?php if ($this->user->hasAccess('project', 'create')): ?>
|
||||
<li><i class="fa fa-plus fa-fw"></i><?= $this->url->link(t('New project'), 'project', 'create') ?></li>
|
||||
<?php endif ?>
|
||||
<li><i class="fa fa-lock fa-fw"></i><?= $this->url->link(t('New private project'), 'project', 'createPrivate') ?></li>
|
||||
<?php if ($this->user->hasAccess('projectuser', 'managers')): ?>
|
||||
<li><i class="fa fa-user fa-fw"></i><?= $this->url->link(t('Users overview'), 'projectuser', 'managers') ?></li>
|
||||
<?php endif ?>
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
<section id="main">
|
||||
<div class="page-header">
|
||||
<ul>
|
||||
<li><i class="fa fa-folder fa-fw"></i><?= $this->url->link(t('All projects'), 'project', 'index') ?></li>
|
||||
</ul>
|
||||
</div>
|
||||
<form method="post" action="<?= $this->url->href('project', 'save') ?>" autocomplete="off">
|
||||
|
||||
<?= $this->form->csrf() ?>
|
||||
<?= $this->form->hidden('is_private', $values) ?>
|
||||
<?= $this->form->label(t('Name'), 'name') ?>
|
||||
<?= $this->form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?>
|
||||
|
||||
<div class="form-actions">
|
||||
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
|
||||
<?= t('or') ?> <?= $this->url->link(t('cancel'), 'project', 'index') ?>
|
||||
</div>
|
||||
</form>
|
||||
<?php if (isset($is_private) && $is_private): ?>
|
||||
<div class="alert alert-info">
|
||||
<p><?= t('There is no user management for private projects.') ?></p>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
</section>
|
||||
Reference in New Issue
Block a user