Move result save button to top
This commit is contained in:
@@ -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'); ?>
|
||||
|
||||
Reference in New Issue
Block a user