summaryrefslogtreecommitdiff
path: root/app/Template/task_bulk_change_property
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2018-06-06 11:07:12 -0700
committerFrédéric Guillot <fred@kanboard.net>2018-06-06 11:07:12 -0700
commit2a299d33d1e8e6b1fe31cafbf4b9c0a12d89f99a (patch)
tree27ba1f56a5deed05ea005498167ae6cf50261500 /app/Template/task_bulk_change_property
parent653128cdb45a43d8f44c5dc5d53ab0caf53dea84 (diff)
Add bulk task modification in list view
Diffstat (limited to 'app/Template/task_bulk_change_property')
-rw-r--r--app/Template/task_bulk_change_property/show.php102
1 files changed, 102 insertions, 0 deletions
diff --git a/app/Template/task_bulk_change_property/show.php b/app/Template/task_bulk_change_property/show.php
new file mode 100644
index 00000000..a152bc39
--- /dev/null
+++ b/app/Template/task_bulk_change_property/show.php
@@ -0,0 +1,102 @@
+<div class="page-header">
+ <h2><?= t('Edit tasks in bulk') ?></h2>
+</div>
+
+<form action="<?= $this->url->href('TaskBulkChangePropertyController', 'save', ['project_id' => $project['id']]) ?>" method="post">
+ <?= $this->form->csrf() ?>
+ <?= $this->form->hidden('task_ids', $values) ?>
+
+ <p class="form-help"><?= t('Choose the properties that you would to change for the selected tasks.') ?></p>
+
+ <fieldset class="bulk-change-block">
+ <div class="bulk-change-checkbox">
+ <input type="checkbox" name="change_color" value="1">
+ </div>
+ <div class="bulk-change-inputs">
+ <?= $this->task->renderColorField($values) ?>
+ </div>
+ </fieldset>
+
+ <fieldset class="bulk-change-block">
+ <div class="bulk-change-checkbox">
+ <input type="checkbox" name="change_assignee" value="1">
+ </div>
+ <div class="bulk-change-inputs">
+ <?= $this->task->renderAssigneeField($users_list, $values, $errors) ?>
+ </div>
+ </fieldset>
+
+ <fieldset class="bulk-change-block">
+ <div class="bulk-change-checkbox">
+ <input type="checkbox" name="change_priority" value="1">
+ </div>
+ <div class="bulk-change-inputs">
+ <?= $this->task->renderPriorityField($project, $values) ?>
+ </div>
+ </fieldset>
+
+ <fieldset class="bulk-change-block">
+ <div class="bulk-change-checkbox">
+ <input type="checkbox" name="change_category" value="1">
+ </div>
+ <div class="bulk-change-inputs">
+ <?= $this->task->renderCategoryField($categories_list, $values, $errors, [], true) ?>
+ </div>
+ </fieldset>
+
+ <fieldset class="bulk-change-block">
+ <div class="bulk-change-checkbox">
+ <input type="checkbox" name="change_tags" value="1">
+ </div>
+ <div class="bulk-change-inputs">
+ <?= $this->task->renderTagField($project) ?>
+ </div>
+ </fieldset>
+
+ <fieldset class="bulk-change-block">
+ <div class="bulk-change-checkbox">
+ <input type="checkbox" name="change_due_date" value="1">
+ </div>
+ <div class="bulk-change-inputs">
+ <?= $this->task->renderDueDateField($values, $errors) ?>
+ </div>
+ </fieldset>
+
+ <fieldset class="bulk-change-block">
+ <div class="bulk-change-checkbox">
+ <input type="checkbox" name="change_start_date" value="1">
+ </div>
+ <div class="bulk-change-inputs">
+ <?= $this->task->renderStartDateField($values, $errors) ?>
+ </div>
+ </fieldset>
+
+ <fieldset class="bulk-change-block">
+ <div class="bulk-change-checkbox">
+ <input type="checkbox" name="change_estimated_time" value="1">
+ </div>
+ <div class="bulk-change-inputs">
+ <?= $this->task->renderTimeEstimatedField($values, $errors) ?>
+ </div>
+ </fieldset>
+
+ <fieldset class="bulk-change-block">
+ <div class="bulk-change-checkbox">
+ <input type="checkbox" name="change_spent_time" value="1">
+ </div>
+ <div class="bulk-change-inputs">
+ <?= $this->task->renderTimeSpentField($values, $errors) ?>
+ </div>
+ </fieldset>
+
+ <fieldset class="bulk-change-block">
+ <div class="bulk-change-checkbox">
+ <input type="checkbox" name="change_score" value="1">
+ </div>
+ <div class="bulk-change-inputs">
+ <?= $this->task->renderScoreField($values, $errors) ?>
+ </div>
+ </fieldset>
+
+ <?= $this->modal->submitButtons() ?>
+</form>