add Save & Close button on the task edit form v1.8 t2

This commit is contained in:
2026-07-10 18:18:26 -03:00
parent ac8e3b9544
commit 269964d4cc
3 changed files with 80 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
<?php $task_id = isset($values['id']) ? (int) $values['id'] : 0 ?>
<?php if ($task_id > 0): ?>
<button type="button" class="btn"
data-organon-save-close="1"
data-url="<?= $this->url->href('TaskSaveCloseController', 'update', array('plugin' => 'OrganonTweaks', 'task_id' => $task_id)) ?>">
<?= t('Save & Close') ?>
</button>
<?php endif ?>