summaryrefslogtreecommitdiff
path: root/app/Template/subtask_restriction/show.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-17 22:25:18 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-17 22:25:18 -0400
commit46ed06268dc3d591fb7bb90a5a9a75e77c17b86c (patch)
tree4e4cc7d42bed1d5ca5e1c9d65415def3161cad2c /app/Template/subtask_restriction/show.php
parent996997a12d1b435956a96640eb6cf39045f6ef46 (diff)
Rename subtask controller
Diffstat (limited to 'app/Template/subtask_restriction/show.php')
-rw-r--r--app/Template/subtask_restriction/show.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/Template/subtask_restriction/show.php b/app/Template/subtask_restriction/show.php
new file mode 100644
index 00000000..1ff49915
--- /dev/null
+++ b/app/Template/subtask_restriction/show.php
@@ -0,0 +1,17 @@
+<div class="page-header">
+ <h2><?= t('You already have one subtask in progress') ?></h2>
+</div>
+<form class="popover-form" action="<?= $this->url->href('SubtaskRestrictionController', 'save', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'subtask_id' => $subtask['id'])) ?>" method="post">
+
+ <?= $this->form->csrf() ?>
+
+ <p><?= t('Select the new status of the subtask: "%s"', $subtask_inprogress['title']) ?></p>
+ <?= $this->form->radios('status', $status_list) ?>
+ <?= $this->form->hidden('id', $subtask_inprogress) ?>
+
+ <div class="form-actions">
+ <button type="submit" class="btn btn-red"><?= t('Save') ?></button>
+ <?= t('or') ?>
+ <?= $this->url->link(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'close-popover') ?>
+ </div>
+</form>