2014-10-22 19:59:09 +02:00
|
|
|
<div class="page-header">
|
|
|
|
<h2><?= t('Duplicate the task to another project') ?></h2>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php if (empty($projects_list)): ?>
|
|
|
|
<p class="alert"><?= t('No project') ?></p>
|
|
|
|
<?php else: ?>
|
|
|
|
|
2015-01-16 14:23:05 +01:00
|
|
|
<form method="post" action="<?= $this->u('task', 'copy', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>" autocomplete="off">
|
2014-10-22 19:59:09 +02:00
|
|
|
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->formCsrf() ?>
|
2014-10-22 19:59:09 +02:00
|
|
|
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->formHidden('id', $values) ?>
|
|
|
|
<?= $this->formLabel(t('Project'), 'project_id') ?>
|
|
|
|
<?= $this->formSelect('project_id', $projects_list, $values, $errors) ?><br/>
|
2014-10-22 19:59:09 +02:00
|
|
|
|
|
|
|
<div class="form-actions">
|
|
|
|
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
|
|
|
|
<?= t('or') ?>
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->a(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
2014-10-22 19:59:09 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<?php endif ?>
|