From 48b40ec7bff777ca9c4c7ec2f91c8e803baab57b Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 30 Oct 2017 16:46:39 -0700 Subject: Add section for predefined contents --- app/Template/project/sidebar.php | 3 +++ app/Template/project_edit/show.php | 6 ------ app/Template/project_predefined_content/show.php | 14 ++++++++++++++ 3 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 app/Template/project_predefined_content/show.php (limited to 'app/Template') 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 @@
  • app->checkMenuSelection('ProjectEditController') ?>> url->link(t('Edit project'), 'ProjectEditController', 'show', array('project_id' => $project['id'])) ?>
  • +
  • app->checkMenuSelection('ProjectPredefinedContentController') ?>> + url->link(t('Predefined contents'), 'ProjectPredefinedContentController', 'show', array('project_id' => $project['id'])) ?> +
  • app->checkMenuSelection('ProjectViewController', 'share') ?>> url->link(t('Public access'), 'ProjectViewController', 'share', array('project_id' => $project['id'])) ?>
  • 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 @@ form->number('priority_end', $values, $errors, array('tabindex="10"')) ?> -
    - - form->textarea('predefined_email_subjects', $values, $errors, array('tabindex="11"')) ?> -

    -
    - modal->submitButtons(array('tabindex' => 11)) ?> 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 @@ + +
    + form->csrf() ?> + +
    + + form->textarea('predefined_email_subjects', $values, $errors, array('tabindex="1"')) ?> +

    +
    + + modal->submitButtons(array('tabindex' => 2)) ?> +
    -- cgit v1.2.3