summaryrefslogtreecommitdiff
path: root/app/Template/task_modification/show.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-06-24 18:09:01 -0400
committerFrederic Guillot <fred@kanboard.net>2016-06-24 18:09:01 -0400
commitb6e92cb64a5ba6c8eb5222a7732fba50e6079622 (patch)
tree8f3f54cebaea33f632c3af00b92b942b275bc2b3 /app/Template/task_modification/show.php
parent17213da5ce60a3da19789cff14544d0a79ee2df1 (diff)
Remove dropdown menus that are now available with task edit form
Diffstat (limited to 'app/Template/task_modification/show.php')
-rw-r--r--app/Template/task_modification/show.php43
1 files changed, 43 insertions, 0 deletions
diff --git a/app/Template/task_modification/show.php b/app/Template/task_modification/show.php
new file mode 100644
index 00000000..d747407e
--- /dev/null
+++ b/app/Template/task_modification/show.php
@@ -0,0 +1,43 @@
+<div class="page-header">
+ <h2><?= t('Edit a task') ?></h2>
+</div>
+<form class="popover-form" method="post" action="<?= $this->url->href('TaskModificationController', 'update', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>" autocomplete="off">
+ <?= $this->form->csrf() ?>
+ <?= $this->form->hidden('id', $values) ?>
+ <?= $this->form->hidden('project_id', $values) ?>
+
+ <div class="form-columns">
+ <div class="form-column">
+ <?= $this->task->selectTitle($values, $errors) ?>
+ <?= $this->task->selectDescription($values, $errors) ?>
+ <?= $this->task->selectTags($project, $tags) ?>
+
+ <?= $this->hook->render('template:task:form:first-column', array('values' => $values, 'errors' => $errors)) ?>
+ </div>
+
+ <div class="form-column">
+ <?= $this->task->selectColor($values) ?>
+ <?= $this->task->selectAssignee($users_list, $values, $errors) ?>
+ <?= $this->task->selectCategory($categories_list, $values, $errors) ?>
+ <?= $this->task->selectPriority($project, $values) ?>
+ <?= $this->task->selectScore($values, $errors) ?>
+
+ <?= $this->hook->render('template:task:form:second-column', array('values' => $values, 'errors' => $errors)) ?>
+ </div>
+
+ <div class="form-column">
+ <?= $this->task->selectTimeEstimated($values, $errors) ?>
+ <?= $this->task->selectTimeSpent($values, $errors) ?>
+ <?= $this->task->selectStartDate($values, $errors) ?>
+ <?= $this->task->selectDueDate($values, $errors) ?>
+
+ <?= $this->hook->render('template:task:form:third-column', array('values' => $values, 'errors' => $errors)) ?>
+ </div>
+ </div>
+
+ <div class="form-actions">
+ <button type="submit" class="btn btn-blue" tabindex="15"><?= t('Save') ?></button>
+ <?= t('or') ?>
+ <?= $this->url->link(t('cancel'), 'TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'close-popover') ?>
+ </div>
+</form>