Add the possibility to create external tasks
This commit is contained in:
19
app/Template/external_task_creation/step1.php
Normal file
19
app/Template/external_task_creation/step1.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<form class="popover-form" method="post" action="<?= $this->url->href('ExternalTaskCreationController', 'step2', array('project_id' => $project['id'], 'provider_name' => $provider_name)) ?>">
|
||||
<?= $this->form->csrf() ?>
|
||||
<?= $this->form->hidden('swimlane_id', $values) ?>
|
||||
<?= $this->form->hidden('column_id', $values) ?>
|
||||
|
||||
<?= $this->render($template, array(
|
||||
'project' => $project,
|
||||
'values' => $values,
|
||||
)) ?>
|
||||
|
||||
<?php if (! empty($error_message)): ?>
|
||||
<div class="alert alert-error"><?= $this->text->e($error_message) ?></div>
|
||||
<?php endif ?>
|
||||
|
||||
<div class="form-actions">
|
||||
<button type="submit" class="btn btn-blue"><?= t('Next') ?></button>
|
||||
<?= t('or') ?> <?= $this->url->link(t('cancel'), 'BoardViewController', 'show', array('project_id' => $project['id']), false, 'close-popover') ?>
|
||||
</div>
|
||||
</form>
|
||||
25
app/Template/external_task_creation/step2.php
Normal file
25
app/Template/external_task_creation/step2.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<form class="popover-form" method="post" action="<?= $this->url->href('ExternalTaskCreationController', 'step3', array('project_id' => $project['id'], 'provider_name' => $provider_name)) ?>">
|
||||
<?= $this->form->csrf() ?>
|
||||
<?= $this->form->hidden('external_provider', $values) ?>
|
||||
<?= $this->form->hidden('external_uri', $values) ?>
|
||||
|
||||
<?= $this->render($template, array(
|
||||
'project' => $project,
|
||||
'external_task' => $external_task,
|
||||
'values' => $values,
|
||||
'errors' => $errors,
|
||||
'users_list' => $users_list,
|
||||
'categories_list' => $categories_list,
|
||||
'swimlanes_list' => $swimlanes_list,
|
||||
'columns_list' => $columns_list,
|
||||
)) ?>
|
||||
|
||||
<?php if (! empty($error_message)): ?>
|
||||
<div class="alert alert-error"><?= $this->text->e($error_message) ?></div>
|
||||
<?php endif ?>
|
||||
|
||||
<div class="form-actions">
|
||||
<button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
|
||||
<?= t('or') ?> <?= $this->url->link(t('cancel'), 'BoardViewController', 'show', array('project_id' => $project['id']), false, 'close-popover') ?>
|
||||
</div>
|
||||
</form>
|
||||
@@ -1,8 +1,8 @@
|
||||
<div class="page-header">
|
||||
<h2><?= $this->text->e($project['name']) ?> > <?= t('New task') ?></h2>
|
||||
<h2><?= $this->text->e($project['name']) ?> > <?= t('New task') ?><?= $this->task->getNewTaskDropdown($project['id'], $values['swimlane_id'], $values['column_id']) ?></h2>
|
||||
</div>
|
||||
|
||||
<form class="popover-form" method="post" action="<?= $this->url->href('TaskCreationController', 'save', array('project_id' => $values['project_id'])) ?>" autocomplete="off">
|
||||
<form class="popover-form" method="post" action="<?= $this->url->href('TaskCreationController', 'save', array('project_id' => $project['id'])) ?>" autocomplete="off">
|
||||
<?= $this->form->csrf() ?>
|
||||
|
||||
<div class="form-columns">
|
||||
@@ -17,7 +17,6 @@
|
||||
<?= $this->form->checkbox('another_task', t('Create another task'), 1, isset($values['another_task']) && $values['another_task'] == 1) ?>
|
||||
<?= $this->form->checkbox('duplicate_multiple_projects', t('Duplicate to multiple projects'), 1) ?>
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-column">
|
||||
|
||||
Reference in New Issue
Block a user