Add read-only preview for question sets
This commit is contained in:
@@ -47,6 +47,13 @@ class HtmlView extends BaseHtmlView
|
||||
protected function addToolbar()
|
||||
{
|
||||
ToolbarHelper::title($this->item->id ? Text::_('COM_TESTQUESTIONS_EDIT_SET') : Text::_('COM_TESTQUESTIONS_NEW_SET'));
|
||||
if (!empty($this->item->id) && ((string) $this->item->set_type !== 'multi' || $this->isVariant)) {
|
||||
ToolbarHelper::link(
|
||||
'index.php?option=com_testquestions&view=preview&set_id=' . (int) $this->item->id,
|
||||
'COM_TESTQUESTIONS_PREVIEW_SET',
|
||||
'eye'
|
||||
);
|
||||
}
|
||||
ToolbarHelper::custom('set.save', 'save', 'save', 'COM_TESTQUESTIONS_SET_SAVE', false);
|
||||
ToolbarHelper::custom('set.saveandclose', 'save', 'save', 'COM_TESTQUESTIONS_SET_SAVE_AND_CLOSE', false);
|
||||
ToolbarHelper::cancel('set.cancel', 'JTOOLBAR_CANCEL');
|
||||
|
||||
Reference in New Issue
Block a user