diff options
Diffstat (limited to 'app/Templates')
-rw-r--r-- | app/Templates/project_export.php | 33 | ||||
-rw-r--r-- | app/Templates/project_index.php | 3 | ||||
-rw-r--r-- | app/Templates/task_edit.php | 4 | ||||
-rw-r--r-- | app/Templates/task_layout.php | 2 | ||||
-rw-r--r-- | app/Templates/task_new.php | 4 |
5 files changed, 41 insertions, 5 deletions
diff --git a/app/Templates/project_export.php b/app/Templates/project_export.php new file mode 100644 index 00000000..946a68a8 --- /dev/null +++ b/app/Templates/project_export.php @@ -0,0 +1,33 @@ +<section id="main"> + <div class="page-header"> + <h2> + <?= t('Tasks exportation for "%s"', $project['name']) ?> + </h2> + <ul> + <li><a href="?controller=board&action=show&project_id=<?= $project['id'] ?>"><?= t('Back to the board') ?></a></li> + <li><a href="?controller=project&action=index"><?= t('List of projects') ?></a></li> + </ul> + </div> + <section id="project-section"> + + <form method="get" action="?" autocomplete="off"> + + <?= Helper\form_hidden('controller', $values) ?> + <?= Helper\form_hidden('action', $values) ?> + <?= Helper\form_hidden('project_id', $values) ?> + + <?= Helper\form_label(t('Start Date'), 'from') ?> + <?= Helper\form_text('from', $values, $errors, array('required', 'placeholder="'.t('month/day/year').'"'), 'form-date') ?><br/> + + <?= Helper\form_label(t('End Date'), 'to') ?> + <?= Helper\form_text('to', $values, $errors, array('required', 'placeholder="'.t('month/day/year').'"'), 'form-date') ?> + + <div class="form-help"><?= t('Others formats accepted: %s and %s', date('Y-m-d'), date('Y_m_d')) ?></div> + + <div class="form-actions"> + <input type="submit" value="<?= t('Execute') ?>" class="btn btn-blue"/> + </div> + </form> + + </section> +</section>
\ No newline at end of file diff --git a/app/Templates/project_index.php b/app/Templates/project_index.php index 927924a5..097ebd1f 100644 --- a/app/Templates/project_index.php +++ b/app/Templates/project_index.php @@ -89,6 +89,9 @@ <li> <a href="?controller=board&action=readonly&token=<?= $project['token'] ?>" target="_blank"><?= t('Public link') ?></a> </li> + <li> + <a href="?controller=project&action=export&project_id=<?= $project['id'] ?>"><?= t('Tasks Export') ?></a> + </li> </ul> </td> <?php endif ?> diff --git a/app/Templates/task_edit.php b/app/Templates/task_edit.php index 0f1ec6f7..a3a0eddd 100644 --- a/app/Templates/task_edit.php +++ b/app/Templates/task_edit.php @@ -7,7 +7,7 @@ </ul> <?php endif ?> </div> - <section> + <section id="task-section"> <form method="post" action="?controller=task&action=update&task_id=<?= $task['id'] ?>&ajax=<?= $ajax ?>" autocomplete="off"> <?= Helper\form_csrf() ?> @@ -39,7 +39,7 @@ <?= Helper\form_label(t('Color'), 'color_id') ?> <?= Helper\form_select('color_id', $colors_list, $values, $errors) ?><br/> - <?= Helper\form_label(t('Story Points'), 'score') ?> + <?= Helper\form_label(t('Complexity'), 'score') ?> <?= Helper\form_number('score', $values, $errors) ?><br/> <?= Helper\form_label(t('Due Date'), 'date_due') ?> diff --git a/app/Templates/task_layout.php b/app/Templates/task_layout.php index 9a6bbd00..96c45608 100644 --- a/app/Templates/task_layout.php +++ b/app/Templates/task_layout.php @@ -5,7 +5,7 @@ <li><a href="?controller=board&action=show&project_id=<?= $task['project_id'] ?>"><?= t('Back to the board') ?></a></li> </ul> </div> - <section class="task-show"> + <section class="task-show" id="task-section"> <?= Helper\template('task_sidebar', array('task' => $task)) ?> diff --git a/app/Templates/task_new.php b/app/Templates/task_new.php index 5e4e3ee6..e07d436c 100644 --- a/app/Templates/task_new.php +++ b/app/Templates/task_new.php @@ -2,7 +2,7 @@ <div class="page-header"> <h2><?= t('New task') ?></h2> </div> - <section> + <section id="task-section"> <form method="post" action="?controller=task&action=save" autocomplete="off"> <?= Helper\form_csrf() ?> @@ -35,7 +35,7 @@ <?= Helper\form_label(t('Color'), 'color_id') ?> <?= Helper\form_select('color_id', $colors_list, $values, $errors) ?><br/> - <?= Helper\form_label(t('Story Points'), 'score') ?> + <?= Helper\form_label(t('Complexity'), 'score') ?> <?= Helper\form_number('score', $values, $errors) ?><br/> <?= Helper\form_label(t('Due Date'), 'date_due') ?> |