Move result save button to top

This commit is contained in:
Wojtek
2026-10-15 21:29:31 +02:00
parent 6c23252eef
commit 1d0b6d7798
4 changed files with 4 additions and 3 deletions
@@ -0,0 +1 @@
-- No database changes required for version 1.26.0.
@@ -18,6 +18,7 @@
</dl>
<form action="<?php echo Route::_('index.php?option=com_testquestions&view=result&id=' . (int) $this->item->id); ?>" method="post" name="resultForm" id="result-form">
<h2><?php echo \Joomla\CMS\Language\Text::_('COM_TESTQUESTIONS_RESULT_ANSWERS'); ?></h2>
<button type="submit" class="btn btn-primary mb-3"><?php echo \Joomla\CMS\Language\Text::_('JSAVE'); ?></button>
<?php foreach ($this->item->answers as $questionId => $answer) : ?>
<?php $question = $this->item->questions[(int) $questionId] ?? null; if (!$question) continue; ?>
<article class="mb-4 border rounded p-3">
@@ -43,7 +44,6 @@
<?php endif; ?>
</article>
<?php endforeach; ?>
<button type="submit" class="btn btn-primary"><?php echo \Joomla\CMS\Language\Text::_('JSAVE'); ?></button>
<input type="hidden" name="task" value="result.save">
<input type="hidden" name="id" value="<?php echo (int) $this->item->id; ?>">
<?php echo HTMLHelper::_('form.token'); ?>