diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-10-30 16:46:39 -0700 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-10-30 16:46:39 -0700 |
commit | 48b40ec7bff777ca9c4c7ec2f91c8e803baab57b (patch) | |
tree | 7681c558f97daf8f6425315a4ba6ee8dc817e36d /app/Template | |
parent | 0a3f2a6a32677e1c5a12a140d2a3a865cb71a2ac (diff) |
Add section for predefined contents
Diffstat (limited to 'app/Template')
-rw-r--r-- | app/Template/project/sidebar.php | 3 | ||||
-rw-r--r-- | app/Template/project_edit/show.php | 6 | ||||
-rw-r--r-- | app/Template/project_predefined_content/show.php | 14 |
3 files changed, 17 insertions, 6 deletions
diff --git a/app/Template/project/sidebar.php b/app/Template/project/sidebar.php index 9775c7a1..4b39172c 100644 --- a/app/Template/project/sidebar.php +++ b/app/Template/project/sidebar.php @@ -13,6 +13,9 @@ <li <?= $this->app->checkMenuSelection('ProjectEditController') ?>> <?= $this->url->link(t('Edit project'), 'ProjectEditController', 'show', array('project_id' => $project['id'])) ?> </li> + <li <?= $this->app->checkMenuSelection('ProjectPredefinedContentController') ?>> + <?= $this->url->link(t('Predefined contents'), 'ProjectPredefinedContentController', 'show', array('project_id' => $project['id'])) ?> + </li> <li <?= $this->app->checkMenuSelection('ProjectViewController', 'share') ?>> <?= $this->url->link(t('Public access'), 'ProjectViewController', 'share', array('project_id' => $project['id'])) ?> </li> diff --git a/app/Template/project_edit/show.php b/app/Template/project_edit/show.php index 8b85f010..96531007 100644 --- a/app/Template/project_edit/show.php +++ b/app/Template/project_edit/show.php @@ -62,11 +62,5 @@ <?= $this->form->number('priority_end', $values, $errors, array('tabindex="10"')) ?> </fieldset> - <fieldset> - <legend><?= t('Predefined Email Subjects') ?></legend> - <?= $this->form->textarea('predefined_email_subjects', $values, $errors, array('tabindex="11"')) ?> - <p class="form-help"><?= t('Write one subject by line.') ?></p> - </fieldset> - <?= $this->modal->submitButtons(array('tabindex' => 11)) ?> </form> diff --git a/app/Template/project_predefined_content/show.php b/app/Template/project_predefined_content/show.php new file mode 100644 index 00000000..8e5ca3dc --- /dev/null +++ b/app/Template/project_predefined_content/show.php @@ -0,0 +1,14 @@ +<div class="page-header"> + <h2><?= t('Predefined Contents') ?></h2> +</div> +<form method="post" action="<?= $this->url->href('ProjectPredefinedContentController', 'update', array('project_id' => $project['id'], 'redirect' => 'edit')) ?>" autocomplete="off"> + <?= $this->form->csrf() ?> + + <fieldset> + <legend><?= t('Predefined Email Subjects') ?></legend> + <?= $this->form->textarea('predefined_email_subjects', $values, $errors, array('tabindex="1"')) ?> + <p class="form-help"><?= t('Write one subject by line.') ?></p> + </fieldset> + + <?= $this->modal->submitButtons(array('tabindex' => 2)) ?> +</form> |