diff options
author | 85pando <85pando@googlemail.com> | 2016-02-05 10:28:40 +0100 |
---|---|---|
committer | 85pando <85pando@googlemail.com> | 2016-02-05 10:28:40 +0100 |
commit | 791d13c87bf510d913973b77a5f6d152311a1d87 (patch) | |
tree | 81412e8dbd3ac4fa0047030a6068afafd975687e /app/Template/task_recurrence | |
parent | 2074aaaa9a75455097e4e77ca09f4fba3e567052 (diff) | |
parent | 12aaec03b19a07635f59b00f532c92c37ac1df5f (diff) |
Merge remote-tracking branch 'refs/remotes/upstream/master'
Conflicts:
app/Locale/de_DE/translations.php
Diffstat (limited to 'app/Template/task_recurrence')
-rw-r--r-- | app/Template/task_recurrence/edit.php | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/app/Template/task_recurrence/edit.php b/app/Template/task_recurrence/edit.php new file mode 100644 index 00000000..3c7f2318 --- /dev/null +++ b/app/Template/task_recurrence/edit.php @@ -0,0 +1,47 @@ +<div class="page-header"> + <h2><?= t('Edit recurrence') ?></h2> +</div> + +<?php if ($task['recurrence_status'] != \Kanboard\Model\Task::RECURRING_STATUS_NONE): ?> +<div class="listing"> + <?= $this->render('task/recurring_info', array( + 'task' => $task, + 'recurrence_trigger_list' => $recurrence_trigger_list, + 'recurrence_timeframe_list' => $recurrence_timeframe_list, + 'recurrence_basedate_list' => $recurrence_basedate_list, + )) ?> +</div> +<?php endif ?> + +<?php if ($task['recurrence_status'] != \Kanboard\Model\Task::RECURRING_STATUS_PROCESSED): ?> + + <form class="popover-form" method="post" action="<?= $this->url->href('TaskRecurrence', '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) ?> + + <?= $this->form->label(t('Generate recurrent task'), 'recurrence_status') ?> + <?= $this->form->select('recurrence_status', $recurrence_status_list, $values, $errors) ?> + + <?= $this->form->label(t('Trigger to generate recurrent task'), 'recurrence_trigger') ?> + <?= $this->form->select('recurrence_trigger', $recurrence_trigger_list, $values, $errors) ?> + + <?= $this->form->label(t('Factor to calculate new due date'), 'recurrence_factor') ?> + <?= $this->form->number('recurrence_factor', $values, $errors) ?> + + <?= $this->form->label(t('Timeframe to calculate new due date'), 'recurrence_timeframe') ?> + <?= $this->form->select('recurrence_timeframe', $recurrence_timeframe_list, $values, $errors) ?> + + <?= $this->form->label(t('Base date to calculate new due date'), 'recurrence_basedate') ?> + <?= $this->form->select('recurrence_basedate', $recurrence_basedate_list, $values, $errors) ?> + + <div class="form-actions"> + <input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"> + <?= t('or') ?> + <?= $this->url->link(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'close-popover') ?> + </div> + </form> + +<?php endif ?>
\ No newline at end of file |