Add section for predefined contents
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
14
app/Template/project_predefined_content/show.php
Normal file
14
app/Template/project_predefined_content/show.php
Normal file
@@ -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>
|
||||
Reference in New Issue
Block a user