Remove questions from parent multi-variant sets

This commit is contained in:
Wojtek
2026-10-16 10:21:52 +02:00
parent 2e3bbe6fc6
commit 8abee59a49
6 changed files with 14 additions and 2 deletions
@@ -44,6 +44,7 @@ HTMLHelper::_('behavior.formvalidator');
</a>
</fieldset>
<?php endif; ?>
<?php if (!((string) $this->item->set_type === 'multi' && (int) $this->item->parent_id === 0)) : ?>
<fieldset class="mb-3">
<legend><?php echo \Joomla\CMS\Language\Text::_('COM_TESTQUESTIONS_SET_SELECTED_QUESTIONS'); ?></legend>
<div id="set-selected-question-list" class="border rounded p-3">
@@ -109,6 +110,11 @@ HTMLHelper::_('behavior.formvalidator');
<?php endforeach; ?>
</div>
</fieldset>
<?php else : ?>
<div class="alert alert-info">
<?php echo \Joomla\CMS\Language\Text::_('COM_TESTQUESTIONS_SET_MULTI_QUESTIONS_INFO'); ?>
</div>
<?php endif; ?>
</fieldset>
<input type="hidden" name="task" value="">
<?php echo HTMLHelper::_('form.token'); ?>