Robot
6acc130732
Fix canDelete to correctly use published. Add default 1 to version field to make sure the versioning feature works as expected.
58 lines
2.2 KiB
PHP
58 lines
2.2 KiB
PHP
<?php
|
|
/*----------------------------------------------------------------------------------| io.vdm.dev |----/
|
|
Vast Development Method
|
|
/-------------------------------------------------------------------------------------------------------/
|
|
|
|
@package getBible.net
|
|
|
|
@created 3rd December, 2015
|
|
@author Llewellyn van der Merwe <https://getbible.net>
|
|
@git Get Bible <https://git.vdm.dev/getBible>
|
|
@github Get Bible <https://github.com/getBible>
|
|
@support Get Bible <https://git.vdm.dev/getBible/support>
|
|
@copyright Copyright (C) 2015. All Rights Reserved
|
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
|
|
/------------------------------------------------------------------------------------------------------*/
|
|
|
|
use Joomla\CMS\Factory;
|
|
use Joomla\CMS\Language\Text;
|
|
use Joomla\CMS\HTML\HTMLHelper as Html;
|
|
use Joomla\CMS\Layout\LayoutHelper;
|
|
use Joomla\CMS\Router\Route;
|
|
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
|
|
|
|
// No direct access to this file
|
|
defined('_JEXEC') or die;
|
|
|
|
if ($this->saveOrder)
|
|
{
|
|
$saveOrderingUrl = 'index.php?option=com_getbible&task=open_ai_responses.saveOrderAjax&tmpl=component';
|
|
Html::_('sortablelist.sortable', 'open_ai_responseList', 'adminForm', strtolower($this->listDirn), $saveOrderingUrl);
|
|
}
|
|
?>
|
|
<form action="<?php echo Route::_('index.php?option=com_getbible&view=open_ai_responses'); ?>" method="post" name="adminForm" id="adminForm">
|
|
<div id="j-main-container">
|
|
<?php
|
|
// Add the trash helper layout
|
|
echo LayoutHelper::render('trashhelper', $this);
|
|
// Add the searchtools
|
|
echo LayoutHelper::render('joomla.searchtools.default', array('view' => $this));
|
|
?>
|
|
<?php if (empty($this->items)): ?>
|
|
<div class="alert alert-no-items">
|
|
<?php echo Text::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
|
|
</div>
|
|
<?php else : ?>
|
|
<table class="table table-striped" id="open_ai_responseList">
|
|
<thead><?php echo $this->loadTemplate('head');?></thead>
|
|
<tfoot><?php echo $this->loadTemplate('foot');?></tfoot>
|
|
<tbody><?php echo $this->loadTemplate('body');?></tbody>
|
|
</table>
|
|
<input type="hidden" name="boxchecked" value="0" />
|
|
</div>
|
|
<?php endif; ?>
|
|
<input type="hidden" name="task" value="" />
|
|
<?php echo Html::_('form.token'); ?>
|
|
</form>
|