diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-01-24 18:15:21 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-01-24 18:15:21 -0500 |
commit | abcfd02067b348e1c86f61e7545b93f87ea89569 (patch) | |
tree | 88af1382f729659dd8bcdb1669653da827c19d29 /app/Template/project_edit/dates.php | |
parent | 4fa38bf417dd7f1673f63641460092bd046d57b7 (diff) |
Split project edition into multiple pages
Diffstat (limited to 'app/Template/project_edit/dates.php')
-rw-r--r-- | app/Template/project_edit/dates.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/app/Template/project_edit/dates.php b/app/Template/project_edit/dates.php new file mode 100644 index 00000000..d3f4bad8 --- /dev/null +++ b/app/Template/project_edit/dates.php @@ -0,0 +1,25 @@ +<div class="page-header"> + <h2><?= t('Edit project') ?></h2> + <ul> + <li ><?= $this->url->link(t('General'), 'ProjectEdit', 'edit', array('project_id' => $project['id'])) ?></li> + <li class="active"><?= $this->url->link(t('Dates'), 'ProjectEdit', 'dates', array('project_id' => $project['id'])) ?></li> + <li><?= $this->url->link(t('Description'), 'ProjectEdit', 'description', array('project_id' => $project['id'])) ?></li> + </ul> +</div> +<form method="post" action="<?= $this->url->href('ProjectEdit', 'update', array('project_id' => $project['id'], 'redirect' => 'dates')) ?>" autocomplete="off"> + <?= $this->form->csrf() ?> + <?= $this->form->hidden('id', $values) ?> + <?= $this->form->hidden('name', $values) ?> + + <?= $this->form->label(t('Start date'), 'start_date') ?> + <?= $this->form->text('start_date', $values, $errors, array('maxlength="10"'), 'form-date') ?> + + <?= $this->form->label(t('End date'), 'end_date') ?> + <?= $this->form->text('end_date', $values, $errors, array('maxlength="10"'), 'form-date') ?> + + <div class="form-actions"> + <input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/> + </div> +</form> + +<p class="alert alert-info"><?= t('Those dates are useful for the project Gantt chart.') ?></p> |