Add new hook template:task:form:bottom-before-buttons

This commit is contained in:
Timo 2020-03-04 03:23:45 +01:00 committed by GitHub
parent 705648d795
commit ea11436663
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -37,6 +37,9 @@
</div>
<div class="task-form-bottom">
<?= $this->hook->render('template:task:form:bottom-before-buttons', array('values' => $values, 'errors' => $errors)) ?>
<?php if (! isset($duplicate)): ?>
<?= $this->form->checkbox('another_task', t('Create another task'), 1, isset($values['another_task']) && $values['another_task'] == 1, '', array("tabindex" => "16")) ?>
<?= $this->form->checkbox('duplicate_multiple_projects', t('Duplicate to multiple projects'), 1, false, '', array("tabindex" => "17")) ?>

View File

@ -35,6 +35,9 @@
</div>
<div class="task-form-bottom">
<?= $this->hook->render('template:task:form:bottom-before-buttons', array('values' => $values, 'errors' => $errors)) ?>
<?= $this->modal->submitButtons() ?>
</div>
</div>