Release of v5.1.1-alpha2
Adds the ModalSelect fieldtype to Joomla Component Builder - J5. Adds the Data Import Function to the Demo Component. Adds new country related tables and fields to the Demo Component. Resolves the Database Updating issue in the compiler. #1212,#1209. Adds the Component Commands Plugin to the CLI for Import of spreadsheet data-sets.
This commit is contained in:
@@ -24,6 +24,9 @@ Html::_('bootstrap.tooltip');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$layout = $this->isModal ? 'modal' : 'edit';
|
||||
$tmpl = $this->input->get('tmpl');
|
||||
$tmpl = $tmpl ? '&tmpl=' . $tmpl : '';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
// waiting spinner
|
||||
@@ -41,7 +44,7 @@ defined('_JEXEC') or die;
|
||||
});
|
||||
</script>
|
||||
<div id="componentbuilder_loader" style="display: none;">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&&layout=' . $layout . $tmpl . '&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
|
||||
<?php echo LayoutHelper::render('admin_custom_tabs.tabs_above', $this); ?>
|
||||
<div class="main-card">
|
||||
|
23
admin/tmpl/admin_custom_tabs/modal.php
Normal file
23
admin/tmpl/admin_custom_tabs/modal.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Admin_custom_tabs\HtmlView $this */
|
||||
?>
|
||||
<div class="subhead noshadow mb-3">
|
||||
<?php echo $this->getDocument()->getToolbar('toolbar')->render(); ?>
|
||||
</div>
|
||||
<div class="container-popup">
|
||||
<?php $this->setLayout('edit'); ?>
|
||||
<?php echo $this->loadTemplate(); ?>
|
||||
</div>
|
@@ -24,6 +24,9 @@ Html::_('bootstrap.tooltip');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$layout = $this->isModal ? 'modal' : 'edit';
|
||||
$tmpl = $this->input->get('tmpl');
|
||||
$tmpl = $tmpl ? '&tmpl=' . $tmpl : '';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
// waiting spinner
|
||||
@@ -41,7 +44,7 @@ defined('_JEXEC') or die;
|
||||
});
|
||||
</script>
|
||||
<div id="componentbuilder_loader" style="display: none;">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&&layout=' . $layout . $tmpl . '&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
|
||||
<?php echo LayoutHelper::render('admin_fields.fields_above', $this); ?>
|
||||
<div class="main-card">
|
||||
|
23
admin/tmpl/admin_fields/modal.php
Normal file
23
admin/tmpl/admin_fields/modal.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Admin_fields\HtmlView $this */
|
||||
?>
|
||||
<div class="subhead noshadow mb-3">
|
||||
<?php echo $this->getDocument()->getToolbar('toolbar')->render(); ?>
|
||||
</div>
|
||||
<div class="container-popup">
|
||||
<?php $this->setLayout('edit'); ?>
|
||||
<?php echo $this->loadTemplate(); ?>
|
||||
</div>
|
@@ -25,6 +25,9 @@ Html::_('bootstrap.tooltip');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$layout = $this->isModal ? 'modal' : 'edit';
|
||||
$tmpl = $this->input->get('tmpl');
|
||||
$tmpl = $tmpl ? '&tmpl=' . $tmpl : '';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
// waiting spinner
|
||||
@@ -42,7 +45,7 @@ defined('_JEXEC') or die;
|
||||
});
|
||||
</script>
|
||||
<div id="componentbuilder_loader" style="display: none;">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&&layout=' . $layout . $tmpl . '&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
|
||||
<?php echo LayoutHelper::render('admin_fields_conditions.conditions_above', $this); ?>
|
||||
<div class="main-card">
|
||||
|
23
admin/tmpl/admin_fields_conditions/modal.php
Normal file
23
admin/tmpl/admin_fields_conditions/modal.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Admin_fields_conditions\HtmlView $this */
|
||||
?>
|
||||
<div class="subhead noshadow mb-3">
|
||||
<?php echo $this->getDocument()->getToolbar('toolbar')->render(); ?>
|
||||
</div>
|
||||
<div class="container-popup">
|
||||
<?php $this->setLayout('edit'); ?>
|
||||
<?php echo $this->loadTemplate(); ?>
|
||||
</div>
|
@@ -25,6 +25,9 @@ Html::_('bootstrap.tooltip');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$layout = $this->isModal ? 'modal' : 'edit';
|
||||
$tmpl = $this->input->get('tmpl');
|
||||
$tmpl = $tmpl ? '&tmpl=' . $tmpl : '';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
// waiting spinner
|
||||
@@ -42,7 +45,7 @@ defined('_JEXEC') or die;
|
||||
});
|
||||
</script>
|
||||
<div id="componentbuilder_loader" style="display: none;">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&&layout=' . $layout . $tmpl . '&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
|
||||
<?php echo LayoutHelper::render('admin_fields_relations.relations_above', $this); ?>
|
||||
<div class="main-card">
|
||||
|
23
admin/tmpl/admin_fields_relations/modal.php
Normal file
23
admin/tmpl/admin_fields_relations/modal.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Admin_fields_relations\HtmlView $this */
|
||||
?>
|
||||
<div class="subhead noshadow mb-3">
|
||||
<?php echo $this->getDocument()->getToolbar('toolbar')->render(); ?>
|
||||
</div>
|
||||
<div class="container-popup">
|
||||
<?php $this->setLayout('edit'); ?>
|
||||
<?php echo $this->loadTemplate(); ?>
|
||||
</div>
|
@@ -25,6 +25,9 @@ Html::_('bootstrap.tooltip');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$layout = $this->isModal ? 'modal' : 'edit';
|
||||
$tmpl = $this->input->get('tmpl');
|
||||
$tmpl = $tmpl ? '&tmpl=' . $tmpl : '';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
// waiting spinner
|
||||
@@ -42,7 +45,7 @@ defined('_JEXEC') or die;
|
||||
});
|
||||
</script>
|
||||
<div id="componentbuilder_loader" style="display: none;">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&&layout=' . $layout . $tmpl . '&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
|
||||
<?php echo LayoutHelper::render('admin_view.details_above', $this); ?>
|
||||
<div class="main-card">
|
||||
|
23
admin/tmpl/admin_view/modal.php
Normal file
23
admin/tmpl/admin_view/modal.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Admin_view\HtmlView $this */
|
||||
?>
|
||||
<div class="subhead noshadow mb-3">
|
||||
<?php echo $this->getDocument()->getToolbar('toolbar')->render(); ?>
|
||||
</div>
|
||||
<div class="container-popup">
|
||||
<?php $this->setLayout('edit'); ?>
|
||||
<?php echo $this->loadTemplate(); ?>
|
||||
</div>
|
@@ -33,7 +33,7 @@ $edit = "index.php?option=com_componentbuilder&view=admin_views&task=admin_view.
|
||||
?>
|
||||
<tr class="row<?php echo $i % 2; ?>">
|
||||
<td class="order nowrap center hidden-phone">
|
||||
<?php if ($canDo->get('admin_view.edit.state')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('admin_view.edit.state')): ?>
|
||||
<?php
|
||||
$iconClass = '';
|
||||
if (!$this->saveOrder)
|
||||
@@ -53,7 +53,7 @@ $edit = "index.php?option=com_componentbuilder&view=admin_views&task=admin_view.
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="nowrap center">
|
||||
<?php if ($canDo->get('admin_view.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('admin_view.edit')): ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('grid.id', $i, $item->id); ?>
|
||||
@@ -69,13 +69,29 @@ $edit = "index.php?option=com_componentbuilder&view=admin_views&task=admin_view.
|
||||
</td>
|
||||
<td class="nowrap">
|
||||
<div>
|
||||
<?php if ($canDo->get('admin_view.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('admin_view.edit')): ?>
|
||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->system_name); ?></a>
|
||||
<?php if ($item->checked_out): ?>
|
||||
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'admin_views.', $canCheckin); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo $this->escape($item->system_name); ?>
|
||||
<?php if (!$this->isModal): ?>
|
||||
<?php echo $this->escape($item->system_name); ?>
|
||||
<?php else: ?>
|
||||
<?php
|
||||
$link = "{$edit}&id={$item->id}";
|
||||
$dataId = $item->{$this->getModalTitleKey()} ?? 0;
|
||||
$itemHtml = '<a href="' . $this->escape($link, false) . '">' . $this->escape($item->system_name, false) . '</a>';
|
||||
$attribs = 'data-content-select data-content-type="com_componentbuilder.admin_view"'
|
||||
. ' data-id="' . $dataId . '"'
|
||||
. ' data-title="' . $this->escape($item->system_name, false) . '"'
|
||||
. ' data-uri="' . $this->escape($link, false) . '"'
|
||||
. ' data-html="' . $this->escape($itemHtml, false) . '"';
|
||||
?>
|
||||
<a class="select-link" href="javascript:void(0)" <?php echo $attribs; ?>>
|
||||
<?php echo $this->escape($item->system_name); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
-
|
||||
<?php echo Text::_($item->type); ?>
|
||||
@@ -139,7 +155,7 @@ $edit = "index.php?option=com_componentbuilder&view=admin_views&task=admin_view.
|
||||
</div>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php if ($canDo->get('admin_view.edit.state')) : ?>
|
||||
<?php if (!$this->isModal && $canDo->get('admin_view.edit.state')) : ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('jgrid.published', $item->published, $i, 'admin_views.', true, 'cb'); ?>
|
||||
|
@@ -17,7 +17,7 @@ defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<?php if ($this->canEdit&& $this->canState): ?>
|
||||
<?php if (!$this->isModal && $this->canEdit && $this->canState): ?>
|
||||
<th width="1%" class="nowrap center hidden-phone">
|
||||
<?php echo Html::_('searchtools.sort', '', 'a.ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?>
|
||||
</th>
|
||||
@@ -36,10 +36,10 @@ defined('_JEXEC') or die;
|
||||
<?php echo Html::_('searchtools.sort', 'COM_COMPONENTBUILDER_ADMIN_VIEW_SYSTEM_NAME_LABEL', 'a.system_name', $this->listDirn, $this->listOrder); ?>
|
||||
</th>
|
||||
<th class="nowrap hidden-phone" >
|
||||
<?php echo Html::_('searchtools.sort', 'COM_COMPONENTBUILDER_ADMIN_VIEW_NAME_SINGLE_LABEL', 'a.name_single', $this->listDirn, $this->listOrder); ?>
|
||||
<?php echo Html::_('searchtools.sort', 'COM_COMPONENTBUILDER_ADMIN_VIEWS_NAMES', 'a.name_single', $this->listDirn, $this->listOrder); ?>
|
||||
</th>
|
||||
<th class="nowrap hidden-phone" >
|
||||
<?php echo Html::_('searchtools.sort', 'COM_COMPONENTBUILDER_ADMIN_VIEW_SHORT_DESCRIPTION_LABEL', 'a.short_description', $this->listDirn, $this->listOrder); ?>
|
||||
<?php echo Html::_('searchtools.sort', 'COM_COMPONENTBUILDER_ADMIN_VIEWS_DETAILS', 'a.short_description', $this->listDirn, $this->listOrder); ?>
|
||||
</th>
|
||||
<?php if ($this->canState): ?>
|
||||
<th width="10" class="nowrap center" >
|
||||
|
92
admin/tmpl/admin_views/modal.php
Normal file
92
admin/tmpl/admin_views/modal.php
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Session\Session;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Admin_views\HtmlView $this */
|
||||
|
||||
$app = Factory::getApplication();
|
||||
|
||||
if ($app->isClient('site')) {
|
||||
Session::checkToken('get') or die(Text::_('JINVALID_TOKEN'));
|
||||
}
|
||||
|
||||
// dynamic selection of title key (link in modal)
|
||||
$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word');
|
||||
|
||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||
$wa = $this->getDocument()->getWebAssetManager();
|
||||
$wa->useScript('core')
|
||||
->useScript('multiselect')
|
||||
->useScript('modal-content-select');
|
||||
?>
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&view=admin_views&layout=modal&tmpl=component&titleKey=' . $this->getModalTitleKey()); ?>" 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="admin_viewList">
|
||||
<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>
|
||||
<script type="text/javascript">
|
||||
// admin_views footer script
|
||||
|
||||
// get page body
|
||||
var outerBodyDiv = document.querySelector('body');
|
||||
|
||||
// start loading spinner
|
||||
var loadingDiv = document.createElement('div');
|
||||
loadingDiv.id = 'loading';
|
||||
|
||||
// Set CSS properties individually
|
||||
loadingDiv.style.background = "rgba(255, 255, 255, .8) url('components/com_componentbuilder/assets/images/import.gif') 50% 15% no-repeat";
|
||||
loadingDiv.style.top = (outerBodyDiv.getBoundingClientRect().top + window.pageYOffset) + "px";
|
||||
loadingDiv.style.left = (outerBodyDiv.getBoundingClientRect().left + window.pageXOffset) + "px";
|
||||
loadingDiv.style.width = outerBodyDiv.offsetWidth + "px";
|
||||
loadingDiv.style.height = outerBodyDiv.offsetHeight + "px";
|
||||
loadingDiv.style.position = 'fixed';
|
||||
loadingDiv.style.opacity = '0.80';
|
||||
loadingDiv.style.msFilter = "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
|
||||
loadingDiv.style.filter = "alpha(opacity=80)";
|
||||
loadingDiv.style.display = 'none';
|
||||
|
||||
// add to page body
|
||||
outerBodyDiv.appendChild(loadingDiv);
|
||||
// when the expand button is clicked
|
||||
jQuery('#toolbar').on('click',"button.button-expand-2", function(e){
|
||||
loadingDiv.style.display = 'block';
|
||||
});
|
||||
</script>
|
@@ -31,7 +31,7 @@ $edit = "index.php?option=com_componentbuilder&view=admins_custom_tabs&task=admi
|
||||
?>
|
||||
<tr class="row<?php echo $i % 2; ?>">
|
||||
<td class="order nowrap center hidden-phone">
|
||||
<?php if ($canDo->get('admin_custom_tabs.edit.state')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('admin_custom_tabs.edit.state')): ?>
|
||||
<?php
|
||||
$iconClass = '';
|
||||
if (!$this->saveOrder)
|
||||
@@ -51,7 +51,7 @@ $edit = "index.php?option=com_componentbuilder&view=admins_custom_tabs&task=admi
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="nowrap center">
|
||||
<?php if ($canDo->get('admin_custom_tabs.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('admin_custom_tabs.edit')): ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('grid.id', $i, $item->id); ?>
|
||||
@@ -67,18 +67,34 @@ $edit = "index.php?option=com_componentbuilder&view=admins_custom_tabs&task=admi
|
||||
</td>
|
||||
<td class="nowrap">
|
||||
<div class="name">
|
||||
<?php if ($canDo->get('admin_custom_tabs.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('admin_custom_tabs.edit')): ?>
|
||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->admin_view_system_name); ?></a>
|
||||
<?php if ($item->checked_out): ?>
|
||||
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'admins_custom_tabs.', $canCheckin); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo $this->escape($item->admin_view_system_name); ?>
|
||||
<?php if (!$this->isModal): ?>
|
||||
<?php echo $this->escape($item->admin_view_system_name); ?>
|
||||
<?php else: ?>
|
||||
<?php
|
||||
$link = "{$edit}&id={$item->id}";
|
||||
$dataId = $item->{$this->getModalTitleKey()} ?? 0;
|
||||
$itemHtml = '<a href="' . $this->escape($link, false) . '">' . $this->escape($item->admin_view_system_name, false) . '</a>';
|
||||
$attribs = 'data-content-select data-content-type="com_componentbuilder.admin_custom_tabs"'
|
||||
. ' data-id="' . $dataId . '"'
|
||||
. ' data-title="' . $this->escape($item->admin_view_system_name, false) . '"'
|
||||
. ' data-uri="' . $this->escape($link, false) . '"'
|
||||
. ' data-html="' . $this->escape($itemHtml, false) . '"';
|
||||
?>
|
||||
<a class="select-link" href="javascript:void(0)" <?php echo $attribs; ?>>
|
||||
<?php echo $this->escape($item->admin_view_system_name); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php if ($canDo->get('admin_custom_tabs.edit.state')) : ?>
|
||||
<?php if (!$this->isModal && $canDo->get('admin_custom_tabs.edit.state')) : ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('jgrid.published', $item->published, $i, 'admins_custom_tabs.', true, 'cb'); ?>
|
||||
|
@@ -17,7 +17,7 @@ defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<?php if ($this->canEdit&& $this->canState): ?>
|
||||
<?php if (!$this->isModal && $this->canEdit && $this->canState): ?>
|
||||
<th width="1%" class="nowrap center hidden-phone">
|
||||
<?php echo Html::_('searchtools.sort', '', 'a.ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?>
|
||||
</th>
|
||||
|
63
admin/tmpl/admins_custom_tabs/modal.php
Normal file
63
admin/tmpl/admins_custom_tabs/modal.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Session\Session;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Admins_custom_tabs\HtmlView $this */
|
||||
|
||||
$app = Factory::getApplication();
|
||||
|
||||
if ($app->isClient('site')) {
|
||||
Session::checkToken('get') or die(Text::_('JINVALID_TOKEN'));
|
||||
}
|
||||
|
||||
// dynamic selection of title key (link in modal)
|
||||
$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word');
|
||||
|
||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||
$wa = $this->getDocument()->getWebAssetManager();
|
||||
$wa->useScript('core')
|
||||
->useScript('multiselect')
|
||||
->useScript('modal-content-select');
|
||||
?>
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&view=admins_custom_tabs&layout=modal&tmpl=component&titleKey=' . $this->getModalTitleKey()); ?>" 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="admin_custom_tabsList">
|
||||
<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>
|
@@ -31,7 +31,7 @@ $edit = "index.php?option=com_componentbuilder&view=admins_fields&task=admin_fie
|
||||
?>
|
||||
<tr class="row<?php echo $i % 2; ?>">
|
||||
<td class="order nowrap center hidden-phone">
|
||||
<?php if ($canDo->get('admin_fields.edit.state')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('admin_fields.edit.state')): ?>
|
||||
<?php
|
||||
$iconClass = '';
|
||||
if (!$this->saveOrder)
|
||||
@@ -51,7 +51,7 @@ $edit = "index.php?option=com_componentbuilder&view=admins_fields&task=admin_fie
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="nowrap center">
|
||||
<?php if ($canDo->get('admin_fields.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('admin_fields.edit')): ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('grid.id', $i, $item->id); ?>
|
||||
@@ -67,18 +67,34 @@ $edit = "index.php?option=com_componentbuilder&view=admins_fields&task=admin_fie
|
||||
</td>
|
||||
<td class="nowrap">
|
||||
<div class="name">
|
||||
<?php if ($canDo->get('admin_fields.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('admin_fields.edit')): ?>
|
||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->admin_view_system_name); ?></a>
|
||||
<?php if ($item->checked_out): ?>
|
||||
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'admins_fields.', $canCheckin); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo $this->escape($item->admin_view_system_name); ?>
|
||||
<?php if (!$this->isModal): ?>
|
||||
<?php echo $this->escape($item->admin_view_system_name); ?>
|
||||
<?php else: ?>
|
||||
<?php
|
||||
$link = "{$edit}&id={$item->id}";
|
||||
$dataId = $item->{$this->getModalTitleKey()} ?? 0;
|
||||
$itemHtml = '<a href="' . $this->escape($link, false) . '">' . $this->escape($item->admin_view_system_name, false) . '</a>';
|
||||
$attribs = 'data-content-select data-content-type="com_componentbuilder.admin_fields"'
|
||||
. ' data-id="' . $dataId . '"'
|
||||
. ' data-title="' . $this->escape($item->admin_view_system_name, false) . '"'
|
||||
. ' data-uri="' . $this->escape($link, false) . '"'
|
||||
. ' data-html="' . $this->escape($itemHtml, false) . '"';
|
||||
?>
|
||||
<a class="select-link" href="javascript:void(0)" <?php echo $attribs; ?>>
|
||||
<?php echo $this->escape($item->admin_view_system_name); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php if ($canDo->get('admin_fields.edit.state')) : ?>
|
||||
<?php if (!$this->isModal && $canDo->get('admin_fields.edit.state')) : ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('jgrid.published', $item->published, $i, 'admins_fields.', true, 'cb'); ?>
|
||||
|
@@ -17,7 +17,7 @@ defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<?php if ($this->canEdit&& $this->canState): ?>
|
||||
<?php if (!$this->isModal && $this->canEdit && $this->canState): ?>
|
||||
<th width="1%" class="nowrap center hidden-phone">
|
||||
<?php echo Html::_('searchtools.sort', '', 'a.ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?>
|
||||
</th>
|
||||
|
63
admin/tmpl/admins_fields/modal.php
Normal file
63
admin/tmpl/admins_fields/modal.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Session\Session;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Admins_fields\HtmlView $this */
|
||||
|
||||
$app = Factory::getApplication();
|
||||
|
||||
if ($app->isClient('site')) {
|
||||
Session::checkToken('get') or die(Text::_('JINVALID_TOKEN'));
|
||||
}
|
||||
|
||||
// dynamic selection of title key (link in modal)
|
||||
$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word');
|
||||
|
||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||
$wa = $this->getDocument()->getWebAssetManager();
|
||||
$wa->useScript('core')
|
||||
->useScript('multiselect')
|
||||
->useScript('modal-content-select');
|
||||
?>
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&view=admins_fields&layout=modal&tmpl=component&titleKey=' . $this->getModalTitleKey()); ?>" 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="admin_fieldsList">
|
||||
<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>
|
@@ -31,7 +31,7 @@ $edit = "index.php?option=com_componentbuilder&view=admins_fields_conditions&tas
|
||||
?>
|
||||
<tr class="row<?php echo $i % 2; ?>">
|
||||
<td class="order nowrap center hidden-phone">
|
||||
<?php if ($canDo->get('admin_fields_conditions.edit.state')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('admin_fields_conditions.edit.state')): ?>
|
||||
<?php
|
||||
$iconClass = '';
|
||||
if (!$this->saveOrder)
|
||||
@@ -51,7 +51,7 @@ $edit = "index.php?option=com_componentbuilder&view=admins_fields_conditions&tas
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="nowrap center">
|
||||
<?php if ($canDo->get('admin_fields_conditions.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('admin_fields_conditions.edit')): ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('grid.id', $i, $item->id); ?>
|
||||
@@ -67,18 +67,34 @@ $edit = "index.php?option=com_componentbuilder&view=admins_fields_conditions&tas
|
||||
</td>
|
||||
<td class="nowrap">
|
||||
<div class="name">
|
||||
<?php if ($canDo->get('admin_fields_conditions.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('admin_fields_conditions.edit')): ?>
|
||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->admin_view_system_name); ?></a>
|
||||
<?php if ($item->checked_out): ?>
|
||||
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'admins_fields_conditions.', $canCheckin); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo $this->escape($item->admin_view_system_name); ?>
|
||||
<?php if (!$this->isModal): ?>
|
||||
<?php echo $this->escape($item->admin_view_system_name); ?>
|
||||
<?php else: ?>
|
||||
<?php
|
||||
$link = "{$edit}&id={$item->id}";
|
||||
$dataId = $item->{$this->getModalTitleKey()} ?? 0;
|
||||
$itemHtml = '<a href="' . $this->escape($link, false) . '">' . $this->escape($item->admin_view_system_name, false) . '</a>';
|
||||
$attribs = 'data-content-select data-content-type="com_componentbuilder.admin_fields_conditions"'
|
||||
. ' data-id="' . $dataId . '"'
|
||||
. ' data-title="' . $this->escape($item->admin_view_system_name, false) . '"'
|
||||
. ' data-uri="' . $this->escape($link, false) . '"'
|
||||
. ' data-html="' . $this->escape($itemHtml, false) . '"';
|
||||
?>
|
||||
<a class="select-link" href="javascript:void(0)" <?php echo $attribs; ?>>
|
||||
<?php echo $this->escape($item->admin_view_system_name); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php if ($canDo->get('admin_fields_conditions.edit.state')) : ?>
|
||||
<?php if (!$this->isModal && $canDo->get('admin_fields_conditions.edit.state')) : ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('jgrid.published', $item->published, $i, 'admins_fields_conditions.', true, 'cb'); ?>
|
||||
|
@@ -17,7 +17,7 @@ defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<?php if ($this->canEdit&& $this->canState): ?>
|
||||
<?php if (!$this->isModal && $this->canEdit && $this->canState): ?>
|
||||
<th width="1%" class="nowrap center hidden-phone">
|
||||
<?php echo Html::_('searchtools.sort', '', 'a.ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?>
|
||||
</th>
|
||||
|
63
admin/tmpl/admins_fields_conditions/modal.php
Normal file
63
admin/tmpl/admins_fields_conditions/modal.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Session\Session;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Admins_fields_conditions\HtmlView $this */
|
||||
|
||||
$app = Factory::getApplication();
|
||||
|
||||
if ($app->isClient('site')) {
|
||||
Session::checkToken('get') or die(Text::_('JINVALID_TOKEN'));
|
||||
}
|
||||
|
||||
// dynamic selection of title key (link in modal)
|
||||
$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word');
|
||||
|
||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||
$wa = $this->getDocument()->getWebAssetManager();
|
||||
$wa->useScript('core')
|
||||
->useScript('multiselect')
|
||||
->useScript('modal-content-select');
|
||||
?>
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&view=admins_fields_conditions&layout=modal&tmpl=component&titleKey=' . $this->getModalTitleKey()); ?>" 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="admin_fields_conditionsList">
|
||||
<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>
|
@@ -31,7 +31,7 @@ $edit = "index.php?option=com_componentbuilder&view=admins_fields_relations&task
|
||||
?>
|
||||
<tr class="row<?php echo $i % 2; ?>">
|
||||
<td class="order nowrap center hidden-phone">
|
||||
<?php if ($canDo->get('admin_fields_relations.edit.state')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('admin_fields_relations.edit.state')): ?>
|
||||
<?php
|
||||
$iconClass = '';
|
||||
if (!$this->saveOrder)
|
||||
@@ -51,7 +51,7 @@ $edit = "index.php?option=com_componentbuilder&view=admins_fields_relations&task
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="nowrap center">
|
||||
<?php if ($canDo->get('admin_fields_relations.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('admin_fields_relations.edit')): ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('grid.id', $i, $item->id); ?>
|
||||
@@ -67,18 +67,34 @@ $edit = "index.php?option=com_componentbuilder&view=admins_fields_relations&task
|
||||
</td>
|
||||
<td class="nowrap">
|
||||
<div class="name">
|
||||
<?php if ($canDo->get('admin_fields_relations.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('admin_fields_relations.edit')): ?>
|
||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->admin_view_system_name); ?></a>
|
||||
<?php if ($item->checked_out): ?>
|
||||
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'admins_fields_relations.', $canCheckin); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo $this->escape($item->admin_view_system_name); ?>
|
||||
<?php if (!$this->isModal): ?>
|
||||
<?php echo $this->escape($item->admin_view_system_name); ?>
|
||||
<?php else: ?>
|
||||
<?php
|
||||
$link = "{$edit}&id={$item->id}";
|
||||
$dataId = $item->{$this->getModalTitleKey()} ?? 0;
|
||||
$itemHtml = '<a href="' . $this->escape($link, false) . '">' . $this->escape($item->admin_view_system_name, false) . '</a>';
|
||||
$attribs = 'data-content-select data-content-type="com_componentbuilder.admin_fields_relations"'
|
||||
. ' data-id="' . $dataId . '"'
|
||||
. ' data-title="' . $this->escape($item->admin_view_system_name, false) . '"'
|
||||
. ' data-uri="' . $this->escape($link, false) . '"'
|
||||
. ' data-html="' . $this->escape($itemHtml, false) . '"';
|
||||
?>
|
||||
<a class="select-link" href="javascript:void(0)" <?php echo $attribs; ?>>
|
||||
<?php echo $this->escape($item->admin_view_system_name); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php if ($canDo->get('admin_fields_relations.edit.state')) : ?>
|
||||
<?php if (!$this->isModal && $canDo->get('admin_fields_relations.edit.state')) : ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('jgrid.published', $item->published, $i, 'admins_fields_relations.', true, 'cb'); ?>
|
||||
|
@@ -17,7 +17,7 @@ defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<?php if ($this->canEdit&& $this->canState): ?>
|
||||
<?php if (!$this->isModal && $this->canEdit && $this->canState): ?>
|
||||
<th width="1%" class="nowrap center hidden-phone">
|
||||
<?php echo Html::_('searchtools.sort', '', 'a.ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?>
|
||||
</th>
|
||||
|
63
admin/tmpl/admins_fields_relations/modal.php
Normal file
63
admin/tmpl/admins_fields_relations/modal.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Session\Session;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Admins_fields_relations\HtmlView $this */
|
||||
|
||||
$app = Factory::getApplication();
|
||||
|
||||
if ($app->isClient('site')) {
|
||||
Session::checkToken('get') or die(Text::_('JINVALID_TOKEN'));
|
||||
}
|
||||
|
||||
// dynamic selection of title key (link in modal)
|
||||
$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word');
|
||||
|
||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||
$wa = $this->getDocument()->getWebAssetManager();
|
||||
$wa->useScript('core')
|
||||
->useScript('multiselect')
|
||||
->useScript('modal-content-select');
|
||||
?>
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&view=admins_fields_relations&layout=modal&tmpl=component&titleKey=' . $this->getModalTitleKey()); ?>" 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="admin_fields_relationsList">
|
||||
<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>
|
@@ -31,7 +31,7 @@ $edit = "index.php?option=com_componentbuilder&view=class_extendings&task=class_
|
||||
?>
|
||||
<tr class="row<?php echo $i % 2; ?>">
|
||||
<td class="order nowrap center hidden-phone">
|
||||
<?php if ($canDo->get('class_extends.edit.state')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('class_extends.edit.state')): ?>
|
||||
<?php
|
||||
$iconClass = '';
|
||||
if (!$this->saveOrder)
|
||||
@@ -51,7 +51,7 @@ $edit = "index.php?option=com_componentbuilder&view=class_extendings&task=class_
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="nowrap center">
|
||||
<?php if ($canDo->get('class_extends.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('class_extends.edit')): ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('grid.id', $i, $item->id); ?>
|
||||
@@ -67,13 +67,29 @@ $edit = "index.php?option=com_componentbuilder&view=class_extendings&task=class_
|
||||
</td>
|
||||
<td class="nowrap">
|
||||
<div class="name">
|
||||
<?php if ($canDo->get('class_extends.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('class_extends.edit')): ?>
|
||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
|
||||
<?php if ($item->checked_out): ?>
|
||||
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'class_extendings.', $canCheckin); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo $this->escape($item->name); ?>
|
||||
<?php if (!$this->isModal): ?>
|
||||
<?php echo $this->escape($item->name); ?>
|
||||
<?php else: ?>
|
||||
<?php
|
||||
$link = "{$edit}&id={$item->id}";
|
||||
$dataId = $item->{$this->getModalTitleKey()} ?? 0;
|
||||
$itemHtml = '<a href="' . $this->escape($link, false) . '">' . $this->escape($item->name, false) . '</a>';
|
||||
$attribs = 'data-content-select data-content-type="com_componentbuilder.class_extends"'
|
||||
. ' data-id="' . $dataId . '"'
|
||||
. ' data-title="' . $this->escape($item->name, false) . '"'
|
||||
. ' data-uri="' . $this->escape($link, false) . '"'
|
||||
. ' data-html="' . $this->escape($itemHtml, false) . '"';
|
||||
?>
|
||||
<a class="select-link" href="javascript:void(0)" <?php echo $attribs; ?>>
|
||||
<?php echo $this->escape($item->name); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
@@ -81,7 +97,7 @@ $edit = "index.php?option=com_componentbuilder&view=class_extendings&task=class_
|
||||
<?php echo Text::_($item->extension_type); ?>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php if ($canDo->get('class_extends.edit.state')) : ?>
|
||||
<?php if (!$this->isModal && $canDo->get('class_extends.edit.state')) : ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('jgrid.published', $item->published, $i, 'class_extendings.', true, 'cb'); ?>
|
||||
|
@@ -17,7 +17,7 @@ defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<?php if ($this->canEdit&& $this->canState): ?>
|
||||
<?php if (!$this->isModal && $this->canEdit && $this->canState): ?>
|
||||
<th width="1%" class="nowrap center hidden-phone">
|
||||
<?php echo Html::_('searchtools.sort', '', 'a.ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?>
|
||||
</th>
|
||||
|
63
admin/tmpl/class_extendings/modal.php
Normal file
63
admin/tmpl/class_extendings/modal.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Session\Session;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Class_extendings\HtmlView $this */
|
||||
|
||||
$app = Factory::getApplication();
|
||||
|
||||
if ($app->isClient('site')) {
|
||||
Session::checkToken('get') or die(Text::_('JINVALID_TOKEN'));
|
||||
}
|
||||
|
||||
// dynamic selection of title key (link in modal)
|
||||
$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word');
|
||||
|
||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||
$wa = $this->getDocument()->getWebAssetManager();
|
||||
$wa->useScript('core')
|
||||
->useScript('multiselect')
|
||||
->useScript('modal-content-select');
|
||||
?>
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&view=class_extendings&layout=modal&tmpl=component&titleKey=' . $this->getModalTitleKey()); ?>" 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="class_extendsList">
|
||||
<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>
|
@@ -25,6 +25,9 @@ Html::_('bootstrap.tooltip');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$layout = $this->isModal ? 'modal' : 'edit';
|
||||
$tmpl = $this->input->get('tmpl');
|
||||
$tmpl = $tmpl ? '&tmpl=' . $tmpl : '';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
// waiting spinner
|
||||
@@ -42,7 +45,7 @@ defined('_JEXEC') or die;
|
||||
});
|
||||
</script>
|
||||
<div id="componentbuilder_loader" style="display: none;">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&&layout=' . $layout . $tmpl . '&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
|
||||
<div class="main-card">
|
||||
|
||||
|
23
admin/tmpl/class_extends/modal.php
Normal file
23
admin/tmpl/class_extends/modal.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Class_extends\HtmlView $this */
|
||||
?>
|
||||
<div class="subhead noshadow mb-3">
|
||||
<?php echo $this->getDocument()->getToolbar('toolbar')->render(); ?>
|
||||
</div>
|
||||
<div class="container-popup">
|
||||
<?php $this->setLayout('edit'); ?>
|
||||
<?php echo $this->loadTemplate(); ?>
|
||||
</div>
|
@@ -25,6 +25,9 @@ Html::_('bootstrap.tooltip');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$layout = $this->isModal ? 'modal' : 'edit';
|
||||
$tmpl = $this->input->get('tmpl');
|
||||
$tmpl = $tmpl ? '&tmpl=' . $tmpl : '';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
// waiting spinner
|
||||
@@ -42,7 +45,7 @@ defined('_JEXEC') or die;
|
||||
});
|
||||
</script>
|
||||
<div id="componentbuilder_loader" style="display: none;">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&&layout=' . $layout . $tmpl . '&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
|
||||
<div class="main-card">
|
||||
|
||||
|
23
admin/tmpl/class_method/modal.php
Normal file
23
admin/tmpl/class_method/modal.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Class_method\HtmlView $this */
|
||||
?>
|
||||
<div class="subhead noshadow mb-3">
|
||||
<?php echo $this->getDocument()->getToolbar('toolbar')->render(); ?>
|
||||
</div>
|
||||
<div class="container-popup">
|
||||
<?php $this->setLayout('edit'); ?>
|
||||
<?php echo $this->loadTemplate(); ?>
|
||||
</div>
|
@@ -31,7 +31,7 @@ $edit = "index.php?option=com_componentbuilder&view=class_methods&task=class_met
|
||||
?>
|
||||
<tr class="row<?php echo $i % 2; ?>">
|
||||
<td class="order nowrap center hidden-phone">
|
||||
<?php if ($canDo->get('class_method.edit.state')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('class_method.edit.state')): ?>
|
||||
<?php
|
||||
$iconClass = '';
|
||||
if (!$this->saveOrder)
|
||||
@@ -51,7 +51,7 @@ $edit = "index.php?option=com_componentbuilder&view=class_methods&task=class_met
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="nowrap center">
|
||||
<?php if ($canDo->get('class_method.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('class_method.edit')): ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('grid.id', $i, $item->id); ?>
|
||||
@@ -67,13 +67,29 @@ $edit = "index.php?option=com_componentbuilder&view=class_methods&task=class_met
|
||||
</td>
|
||||
<td class="nowrap">
|
||||
<div>
|
||||
<?php if ($canDo->get('class_method.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('class_method.edit')): ?>
|
||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
|
||||
<?php if ($item->checked_out): ?>
|
||||
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'class_methods.', $canCheckin); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo $this->escape($item->name); ?>
|
||||
<?php if (!$this->isModal): ?>
|
||||
<?php echo $this->escape($item->name); ?>
|
||||
<?php else: ?>
|
||||
<?php
|
||||
$link = "{$edit}&id={$item->id}";
|
||||
$dataId = $item->{$this->getModalTitleKey()} ?? 0;
|
||||
$itemHtml = '<a href="' . $this->escape($link, false) . '">' . $this->escape($item->name, false) . '</a>';
|
||||
$attribs = 'data-content-select data-content-type="com_componentbuilder.class_method"'
|
||||
. ' data-id="' . $dataId . '"'
|
||||
. ' data-title="' . $this->escape($item->name, false) . '"'
|
||||
. ' data-uri="' . $this->escape($link, false) . '"'
|
||||
. ' data-html="' . $this->escape($itemHtml, false) . '"';
|
||||
?>
|
||||
<a class="select-link" href="javascript:void(0)" <?php echo $attribs; ?>>
|
||||
<?php echo $this->escape($item->name); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>(
|
||||
<?php echo $this->escape($item->arguments); ?>)
|
||||
</div>
|
||||
@@ -93,7 +109,7 @@ $edit = "index.php?option=com_componentbuilder&view=class_methods&task=class_met
|
||||
</div>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php if ($canDo->get('class_method.edit.state')) : ?>
|
||||
<?php if (!$this->isModal && $canDo->get('class_method.edit.state')) : ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('jgrid.published', $item->published, $i, 'class_methods.', true, 'cb'); ?>
|
||||
|
@@ -17,7 +17,7 @@ defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<?php if ($this->canEdit&& $this->canState): ?>
|
||||
<?php if (!$this->isModal && $this->canEdit && $this->canState): ?>
|
||||
<th width="1%" class="nowrap center hidden-phone">
|
||||
<?php echo Html::_('searchtools.sort', '', 'a.ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?>
|
||||
</th>
|
||||
|
63
admin/tmpl/class_methods/modal.php
Normal file
63
admin/tmpl/class_methods/modal.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Session\Session;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Class_methods\HtmlView $this */
|
||||
|
||||
$app = Factory::getApplication();
|
||||
|
||||
if ($app->isClient('site')) {
|
||||
Session::checkToken('get') or die(Text::_('JINVALID_TOKEN'));
|
||||
}
|
||||
|
||||
// dynamic selection of title key (link in modal)
|
||||
$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word');
|
||||
|
||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||
$wa = $this->getDocument()->getWebAssetManager();
|
||||
$wa->useScript('core')
|
||||
->useScript('multiselect')
|
||||
->useScript('modal-content-select');
|
||||
?>
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&view=class_methods&layout=modal&tmpl=component&titleKey=' . $this->getModalTitleKey()); ?>" 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="class_methodList">
|
||||
<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>
|
@@ -32,7 +32,7 @@ $edit = "index.php?option=com_componentbuilder&view=class_properties&task=class_
|
||||
?>
|
||||
<tr class="row<?php echo $i % 2; ?>">
|
||||
<td class="order nowrap center hidden-phone">
|
||||
<?php if ($canDo->get('class_property.edit.state')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('class_property.edit.state')): ?>
|
||||
<?php
|
||||
$iconClass = '';
|
||||
if (!$this->saveOrder)
|
||||
@@ -52,7 +52,7 @@ $edit = "index.php?option=com_componentbuilder&view=class_properties&task=class_
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="nowrap center">
|
||||
<?php if ($canDo->get('class_property.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('class_property.edit')): ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('grid.id', $i, $item->id); ?>
|
||||
@@ -68,13 +68,29 @@ $edit = "index.php?option=com_componentbuilder&view=class_properties&task=class_
|
||||
</td>
|
||||
<td class="nowrap">
|
||||
<div class="name">
|
||||
<?php if ($canDo->get('class_property.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('class_property.edit')): ?>
|
||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
|
||||
<?php if ($item->checked_out): ?>
|
||||
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'class_properties.', $canCheckin); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo $this->escape($item->name); ?>
|
||||
<?php if (!$this->isModal): ?>
|
||||
<?php echo $this->escape($item->name); ?>
|
||||
<?php else: ?>
|
||||
<?php
|
||||
$link = "{$edit}&id={$item->id}";
|
||||
$dataId = $item->{$this->getModalTitleKey()} ?? 0;
|
||||
$itemHtml = '<a href="' . $this->escape($link, false) . '">' . $this->escape($item->name, false) . '</a>';
|
||||
$attribs = 'data-content-select data-content-type="com_componentbuilder.class_property"'
|
||||
. ' data-id="' . $dataId . '"'
|
||||
. ' data-title="' . $this->escape($item->name, false) . '"'
|
||||
. ' data-uri="' . $this->escape($link, false) . '"'
|
||||
. ' data-html="' . $this->escape($itemHtml, false) . '"';
|
||||
?>
|
||||
<a class="select-link" href="javascript:void(0)" <?php echo $attribs; ?>>
|
||||
<?php echo $this->escape($item->name); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
@@ -93,7 +109,7 @@ $edit = "index.php?option=com_componentbuilder&view=class_properties&task=class_
|
||||
</div>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php if ($canDo->get('class_property.edit.state')) : ?>
|
||||
<?php if (!$this->isModal && $canDo->get('class_property.edit.state')) : ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('jgrid.published', $item->published, $i, 'class_properties.', true, 'cb'); ?>
|
||||
|
@@ -17,7 +17,7 @@ defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<?php if ($this->canEdit&& $this->canState): ?>
|
||||
<?php if (!$this->isModal && $this->canEdit && $this->canState): ?>
|
||||
<th width="1%" class="nowrap center hidden-phone">
|
||||
<?php echo Html::_('searchtools.sort', '', 'a.ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?>
|
||||
</th>
|
||||
|
63
admin/tmpl/class_properties/modal.php
Normal file
63
admin/tmpl/class_properties/modal.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Session\Session;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Class_properties\HtmlView $this */
|
||||
|
||||
$app = Factory::getApplication();
|
||||
|
||||
if ($app->isClient('site')) {
|
||||
Session::checkToken('get') or die(Text::_('JINVALID_TOKEN'));
|
||||
}
|
||||
|
||||
// dynamic selection of title key (link in modal)
|
||||
$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word');
|
||||
|
||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||
$wa = $this->getDocument()->getWebAssetManager();
|
||||
$wa->useScript('core')
|
||||
->useScript('multiselect')
|
||||
->useScript('modal-content-select');
|
||||
?>
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&view=class_properties&layout=modal&tmpl=component&titleKey=' . $this->getModalTitleKey()); ?>" 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="class_propertyList">
|
||||
<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>
|
@@ -25,6 +25,9 @@ Html::_('bootstrap.tooltip');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$layout = $this->isModal ? 'modal' : 'edit';
|
||||
$tmpl = $this->input->get('tmpl');
|
||||
$tmpl = $tmpl ? '&tmpl=' . $tmpl : '';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
// waiting spinner
|
||||
@@ -42,7 +45,7 @@ defined('_JEXEC') or die;
|
||||
});
|
||||
</script>
|
||||
<div id="componentbuilder_loader" style="display: none;">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&&layout=' . $layout . $tmpl . '&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
|
||||
<div class="main-card">
|
||||
|
||||
|
23
admin/tmpl/class_property/modal.php
Normal file
23
admin/tmpl/class_property/modal.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Class_property\HtmlView $this */
|
||||
?>
|
||||
<div class="subhead noshadow mb-3">
|
||||
<?php echo $this->getDocument()->getToolbar('toolbar')->render(); ?>
|
||||
</div>
|
||||
<div class="container-popup">
|
||||
<?php $this->setLayout('edit'); ?>
|
||||
<?php echo $this->loadTemplate(); ?>
|
||||
</div>
|
@@ -24,6 +24,9 @@ Html::_('bootstrap.tooltip');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$layout = $this->isModal ? 'modal' : 'edit';
|
||||
$tmpl = $this->input->get('tmpl');
|
||||
$tmpl = $tmpl ? '&tmpl=' . $tmpl : '';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
// waiting spinner
|
||||
@@ -41,7 +44,7 @@ defined('_JEXEC') or die;
|
||||
});
|
||||
</script>
|
||||
<div id="componentbuilder_loader" style="display: none;">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&&layout=' . $layout . $tmpl . '&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
|
||||
<?php echo LayoutHelper::render('component_admin_views.views_above', $this); ?>
|
||||
<div class="main-card">
|
||||
|
23
admin/tmpl/component_admin_views/modal.php
Normal file
23
admin/tmpl/component_admin_views/modal.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Component_admin_views\HtmlView $this */
|
||||
?>
|
||||
<div class="subhead noshadow mb-3">
|
||||
<?php echo $this->getDocument()->getToolbar('toolbar')->render(); ?>
|
||||
</div>
|
||||
<div class="container-popup">
|
||||
<?php $this->setLayout('edit'); ?>
|
||||
<?php echo $this->loadTemplate(); ?>
|
||||
</div>
|
@@ -24,6 +24,9 @@ Html::_('bootstrap.tooltip');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$layout = $this->isModal ? 'modal' : 'edit';
|
||||
$tmpl = $this->input->get('tmpl');
|
||||
$tmpl = $tmpl ? '&tmpl=' . $tmpl : '';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
// waiting spinner
|
||||
@@ -41,7 +44,7 @@ defined('_JEXEC') or die;
|
||||
});
|
||||
</script>
|
||||
<div id="componentbuilder_loader" style="display: none;">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&&layout=' . $layout . $tmpl . '&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
|
||||
<?php echo LayoutHelper::render('component_config.options_above', $this); ?>
|
||||
<div class="main-card">
|
||||
|
23
admin/tmpl/component_config/modal.php
Normal file
23
admin/tmpl/component_config/modal.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Component_config\HtmlView $this */
|
||||
?>
|
||||
<div class="subhead noshadow mb-3">
|
||||
<?php echo $this->getDocument()->getToolbar('toolbar')->render(); ?>
|
||||
</div>
|
||||
<div class="container-popup">
|
||||
<?php $this->setLayout('edit'); ?>
|
||||
<?php echo $this->loadTemplate(); ?>
|
||||
</div>
|
@@ -24,6 +24,9 @@ Html::_('bootstrap.tooltip');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$layout = $this->isModal ? 'modal' : 'edit';
|
||||
$tmpl = $this->input->get('tmpl');
|
||||
$tmpl = $tmpl ? '&tmpl=' . $tmpl : '';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
// waiting spinner
|
||||
@@ -41,7 +44,7 @@ defined('_JEXEC') or die;
|
||||
});
|
||||
</script>
|
||||
<div id="componentbuilder_loader" style="display: none;">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&&layout=' . $layout . $tmpl . '&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
|
||||
<?php echo LayoutHelper::render('component_custom_admin_menus.menus_above', $this); ?>
|
||||
<div class="main-card">
|
||||
|
23
admin/tmpl/component_custom_admin_menus/modal.php
Normal file
23
admin/tmpl/component_custom_admin_menus/modal.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Component_custom_admin_menus\HtmlView $this */
|
||||
?>
|
||||
<div class="subhead noshadow mb-3">
|
||||
<?php echo $this->getDocument()->getToolbar('toolbar')->render(); ?>
|
||||
</div>
|
||||
<div class="container-popup">
|
||||
<?php $this->setLayout('edit'); ?>
|
||||
<?php echo $this->loadTemplate(); ?>
|
||||
</div>
|
@@ -24,6 +24,9 @@ Html::_('bootstrap.tooltip');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$layout = $this->isModal ? 'modal' : 'edit';
|
||||
$tmpl = $this->input->get('tmpl');
|
||||
$tmpl = $tmpl ? '&tmpl=' . $tmpl : '';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
// waiting spinner
|
||||
@@ -41,7 +44,7 @@ defined('_JEXEC') or die;
|
||||
});
|
||||
</script>
|
||||
<div id="componentbuilder_loader" style="display: none;">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&&layout=' . $layout . $tmpl . '&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
|
||||
<?php echo LayoutHelper::render('component_custom_admin_views.views_above', $this); ?>
|
||||
<div class="main-card">
|
||||
|
23
admin/tmpl/component_custom_admin_views/modal.php
Normal file
23
admin/tmpl/component_custom_admin_views/modal.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Component_custom_admin_views\HtmlView $this */
|
||||
?>
|
||||
<div class="subhead noshadow mb-3">
|
||||
<?php echo $this->getDocument()->getToolbar('toolbar')->render(); ?>
|
||||
</div>
|
||||
<div class="container-popup">
|
||||
<?php $this->setLayout('edit'); ?>
|
||||
<?php echo $this->loadTemplate(); ?>
|
||||
</div>
|
@@ -25,6 +25,9 @@ Html::_('bootstrap.tooltip');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$layout = $this->isModal ? 'modal' : 'edit';
|
||||
$tmpl = $this->input->get('tmpl');
|
||||
$tmpl = $tmpl ? '&tmpl=' . $tmpl : '';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
// waiting spinner
|
||||
@@ -42,7 +45,7 @@ defined('_JEXEC') or die;
|
||||
});
|
||||
</script>
|
||||
<div id="componentbuilder_loader" style="display: none;">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&&layout=' . $layout . $tmpl . '&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
|
||||
<?php echo LayoutHelper::render('component_dashboard.dashboard_above', $this); ?>
|
||||
<div class="main-card">
|
||||
|
23
admin/tmpl/component_dashboard/modal.php
Normal file
23
admin/tmpl/component_dashboard/modal.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Component_dashboard\HtmlView $this */
|
||||
?>
|
||||
<div class="subhead noshadow mb-3">
|
||||
<?php echo $this->getDocument()->getToolbar('toolbar')->render(); ?>
|
||||
</div>
|
||||
<div class="container-popup">
|
||||
<?php $this->setLayout('edit'); ?>
|
||||
<?php echo $this->loadTemplate(); ?>
|
||||
</div>
|
@@ -24,6 +24,9 @@ Html::_('bootstrap.tooltip');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$layout = $this->isModal ? 'modal' : 'edit';
|
||||
$tmpl = $this->input->get('tmpl');
|
||||
$tmpl = $tmpl ? '&tmpl=' . $tmpl : '';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
// waiting spinner
|
||||
@@ -41,7 +44,7 @@ defined('_JEXEC') or die;
|
||||
});
|
||||
</script>
|
||||
<div id="componentbuilder_loader" style="display: none;">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&&layout=' . $layout . $tmpl . '&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
|
||||
<?php echo LayoutHelper::render('component_files_folders.basic_above', $this); ?>
|
||||
<div class="main-card">
|
||||
|
23
admin/tmpl/component_files_folders/modal.php
Normal file
23
admin/tmpl/component_files_folders/modal.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Component_files_folders\HtmlView $this */
|
||||
?>
|
||||
<div class="subhead noshadow mb-3">
|
||||
<?php echo $this->getDocument()->getToolbar('toolbar')->render(); ?>
|
||||
</div>
|
||||
<div class="container-popup">
|
||||
<?php $this->setLayout('edit'); ?>
|
||||
<?php echo $this->loadTemplate(); ?>
|
||||
</div>
|
@@ -24,6 +24,9 @@ Html::_('bootstrap.tooltip');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$layout = $this->isModal ? 'modal' : 'edit';
|
||||
$tmpl = $this->input->get('tmpl');
|
||||
$tmpl = $tmpl ? '&tmpl=' . $tmpl : '';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
// waiting spinner
|
||||
@@ -41,7 +44,7 @@ defined('_JEXEC') or die;
|
||||
});
|
||||
</script>
|
||||
<div id="componentbuilder_loader" style="display: none;">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&&layout=' . $layout . $tmpl . '&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
|
||||
<?php echo LayoutHelper::render('component_modules.modules_above', $this); ?>
|
||||
<div class="main-card">
|
||||
|
23
admin/tmpl/component_modules/modal.php
Normal file
23
admin/tmpl/component_modules/modal.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Component_modules\HtmlView $this */
|
||||
?>
|
||||
<div class="subhead noshadow mb-3">
|
||||
<?php echo $this->getDocument()->getToolbar('toolbar')->render(); ?>
|
||||
</div>
|
||||
<div class="container-popup">
|
||||
<?php $this->setLayout('edit'); ?>
|
||||
<?php echo $this->loadTemplate(); ?>
|
||||
</div>
|
@@ -24,6 +24,9 @@ Html::_('bootstrap.tooltip');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$layout = $this->isModal ? 'modal' : 'edit';
|
||||
$tmpl = $this->input->get('tmpl');
|
||||
$tmpl = $tmpl ? '&tmpl=' . $tmpl : '';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
// waiting spinner
|
||||
@@ -41,7 +44,7 @@ defined('_JEXEC') or die;
|
||||
});
|
||||
</script>
|
||||
<div id="componentbuilder_loader" style="display: none;">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&&layout=' . $layout . $tmpl . '&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
|
||||
<?php echo LayoutHelper::render('component_mysql_tweaks.mysql_tweaks_above', $this); ?>
|
||||
<div class="main-card">
|
||||
|
23
admin/tmpl/component_mysql_tweaks/modal.php
Normal file
23
admin/tmpl/component_mysql_tweaks/modal.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Component_mysql_tweaks\HtmlView $this */
|
||||
?>
|
||||
<div class="subhead noshadow mb-3">
|
||||
<?php echo $this->getDocument()->getToolbar('toolbar')->render(); ?>
|
||||
</div>
|
||||
<div class="container-popup">
|
||||
<?php $this->setLayout('edit'); ?>
|
||||
<?php echo $this->loadTemplate(); ?>
|
||||
</div>
|
@@ -24,6 +24,9 @@ Html::_('bootstrap.tooltip');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$layout = $this->isModal ? 'modal' : 'edit';
|
||||
$tmpl = $this->input->get('tmpl');
|
||||
$tmpl = $tmpl ? '&tmpl=' . $tmpl : '';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
// waiting spinner
|
||||
@@ -41,7 +44,7 @@ defined('_JEXEC') or die;
|
||||
});
|
||||
</script>
|
||||
<div id="componentbuilder_loader" style="display: none;">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&&layout=' . $layout . $tmpl . '&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
|
||||
<?php echo LayoutHelper::render('component_placeholders.details_above', $this); ?>
|
||||
<div class="main-card">
|
||||
|
23
admin/tmpl/component_placeholders/modal.php
Normal file
23
admin/tmpl/component_placeholders/modal.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Component_placeholders\HtmlView $this */
|
||||
?>
|
||||
<div class="subhead noshadow mb-3">
|
||||
<?php echo $this->getDocument()->getToolbar('toolbar')->render(); ?>
|
||||
</div>
|
||||
<div class="container-popup">
|
||||
<?php $this->setLayout('edit'); ?>
|
||||
<?php echo $this->loadTemplate(); ?>
|
||||
</div>
|
@@ -24,6 +24,9 @@ Html::_('bootstrap.tooltip');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$layout = $this->isModal ? 'modal' : 'edit';
|
||||
$tmpl = $this->input->get('tmpl');
|
||||
$tmpl = $tmpl ? '&tmpl=' . $tmpl : '';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
// waiting spinner
|
||||
@@ -41,7 +44,7 @@ defined('_JEXEC') or die;
|
||||
});
|
||||
</script>
|
||||
<div id="componentbuilder_loader" style="display: none;">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&&layout=' . $layout . $tmpl . '&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
|
||||
<?php echo LayoutHelper::render('component_plugins.plugins_above', $this); ?>
|
||||
<div class="main-card">
|
||||
|
23
admin/tmpl/component_plugins/modal.php
Normal file
23
admin/tmpl/component_plugins/modal.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Component_plugins\HtmlView $this */
|
||||
?>
|
||||
<div class="subhead noshadow mb-3">
|
||||
<?php echo $this->getDocument()->getToolbar('toolbar')->render(); ?>
|
||||
</div>
|
||||
<div class="container-popup">
|
||||
<?php $this->setLayout('edit'); ?>
|
||||
<?php echo $this->loadTemplate(); ?>
|
||||
</div>
|
@@ -24,6 +24,9 @@ Html::_('bootstrap.tooltip');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$layout = $this->isModal ? 'modal' : 'edit';
|
||||
$tmpl = $this->input->get('tmpl');
|
||||
$tmpl = $tmpl ? '&tmpl=' . $tmpl : '';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
// waiting spinner
|
||||
@@ -41,7 +44,7 @@ defined('_JEXEC') or die;
|
||||
});
|
||||
</script>
|
||||
<div id="componentbuilder_loader" style="display: none;">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&&layout=' . $layout . $tmpl . '&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
|
||||
<?php echo LayoutHelper::render('component_router.settings_above', $this); ?>
|
||||
<div class="main-card">
|
||||
|
23
admin/tmpl/component_router/modal.php
Normal file
23
admin/tmpl/component_router/modal.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Component_router\HtmlView $this */
|
||||
?>
|
||||
<div class="subhead noshadow mb-3">
|
||||
<?php echo $this->getDocument()->getToolbar('toolbar')->render(); ?>
|
||||
</div>
|
||||
<div class="container-popup">
|
||||
<?php $this->setLayout('edit'); ?>
|
||||
<?php echo $this->loadTemplate(); ?>
|
||||
</div>
|
@@ -24,6 +24,9 @@ Html::_('bootstrap.tooltip');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$layout = $this->isModal ? 'modal' : 'edit';
|
||||
$tmpl = $this->input->get('tmpl');
|
||||
$tmpl = $tmpl ? '&tmpl=' . $tmpl : '';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
// waiting spinner
|
||||
@@ -41,7 +44,7 @@ defined('_JEXEC') or die;
|
||||
});
|
||||
</script>
|
||||
<div id="componentbuilder_loader" style="display: none;">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&&layout=' . $layout . $tmpl . '&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
|
||||
<?php echo LayoutHelper::render('component_site_views.views_above', $this); ?>
|
||||
<div class="main-card">
|
||||
|
23
admin/tmpl/component_site_views/modal.php
Normal file
23
admin/tmpl/component_site_views/modal.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Component_site_views\HtmlView $this */
|
||||
?>
|
||||
<div class="subhead noshadow mb-3">
|
||||
<?php echo $this->getDocument()->getToolbar('toolbar')->render(); ?>
|
||||
</div>
|
||||
<div class="container-popup">
|
||||
<?php $this->setLayout('edit'); ?>
|
||||
<?php echo $this->loadTemplate(); ?>
|
||||
</div>
|
@@ -24,6 +24,9 @@ Html::_('bootstrap.tooltip');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$layout = $this->isModal ? 'modal' : 'edit';
|
||||
$tmpl = $this->input->get('tmpl');
|
||||
$tmpl = $tmpl ? '&tmpl=' . $tmpl : '';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
// waiting spinner
|
||||
@@ -41,7 +44,7 @@ defined('_JEXEC') or die;
|
||||
});
|
||||
</script>
|
||||
<div id="componentbuilder_loader" style="display: none;">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&&layout=' . $layout . $tmpl . '&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
|
||||
<?php echo LayoutHelper::render('component_updates.updates_above', $this); ?>
|
||||
<div class="main-card">
|
||||
|
23
admin/tmpl/component_updates/modal.php
Normal file
23
admin/tmpl/component_updates/modal.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Component_updates\HtmlView $this */
|
||||
?>
|
||||
<div class="subhead noshadow mb-3">
|
||||
<?php echo $this->getDocument()->getToolbar('toolbar')->render(); ?>
|
||||
</div>
|
||||
<div class="container-popup">
|
||||
<?php $this->setLayout('edit'); ?>
|
||||
<?php echo $this->loadTemplate(); ?>
|
||||
</div>
|
@@ -31,7 +31,7 @@ $edit = "index.php?option=com_componentbuilder&view=components_admin_views&task=
|
||||
?>
|
||||
<tr class="row<?php echo $i % 2; ?>">
|
||||
<td class="order nowrap center hidden-phone">
|
||||
<?php if ($canDo->get('component_admin_views.edit.state')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_admin_views.edit.state')): ?>
|
||||
<?php
|
||||
$iconClass = '';
|
||||
if (!$this->saveOrder)
|
||||
@@ -51,7 +51,7 @@ $edit = "index.php?option=com_componentbuilder&view=components_admin_views&task=
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="nowrap center">
|
||||
<?php if ($canDo->get('component_admin_views.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_admin_views.edit')): ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('grid.id', $i, $item->id); ?>
|
||||
@@ -67,18 +67,34 @@ $edit = "index.php?option=com_componentbuilder&view=components_admin_views&task=
|
||||
</td>
|
||||
<td class="nowrap">
|
||||
<div class="name">
|
||||
<?php if ($canDo->get('component_admin_views.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_admin_views.edit')): ?>
|
||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
||||
<?php if ($item->checked_out): ?>
|
||||
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_admin_views.', $canCheckin); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
<?php if (!$this->isModal): ?>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
<?php else: ?>
|
||||
<?php
|
||||
$link = "{$edit}&id={$item->id}";
|
||||
$dataId = $item->{$this->getModalTitleKey()} ?? 0;
|
||||
$itemHtml = '<a href="' . $this->escape($link, false) . '">' . $this->escape($item->joomla_component_system_name, false) . '</a>';
|
||||
$attribs = 'data-content-select data-content-type="com_componentbuilder.component_admin_views"'
|
||||
. ' data-id="' . $dataId . '"'
|
||||
. ' data-title="' . $this->escape($item->joomla_component_system_name, false) . '"'
|
||||
. ' data-uri="' . $this->escape($link, false) . '"'
|
||||
. ' data-html="' . $this->escape($itemHtml, false) . '"';
|
||||
?>
|
||||
<a class="select-link" href="javascript:void(0)" <?php echo $attribs; ?>>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php if ($canDo->get('component_admin_views.edit.state')) : ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_admin_views.edit.state')) : ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('jgrid.published', $item->published, $i, 'components_admin_views.', true, 'cb'); ?>
|
||||
|
@@ -17,7 +17,7 @@ defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<?php if ($this->canEdit&& $this->canState): ?>
|
||||
<?php if (!$this->isModal && $this->canEdit && $this->canState): ?>
|
||||
<th width="1%" class="nowrap center hidden-phone">
|
||||
<?php echo Html::_('searchtools.sort', '', 'a.ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?>
|
||||
</th>
|
||||
|
63
admin/tmpl/components_admin_views/modal.php
Normal file
63
admin/tmpl/components_admin_views/modal.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Session\Session;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Components_admin_views\HtmlView $this */
|
||||
|
||||
$app = Factory::getApplication();
|
||||
|
||||
if ($app->isClient('site')) {
|
||||
Session::checkToken('get') or die(Text::_('JINVALID_TOKEN'));
|
||||
}
|
||||
|
||||
// dynamic selection of title key (link in modal)
|
||||
$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word');
|
||||
|
||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||
$wa = $this->getDocument()->getWebAssetManager();
|
||||
$wa->useScript('core')
|
||||
->useScript('multiselect')
|
||||
->useScript('modal-content-select');
|
||||
?>
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&view=components_admin_views&layout=modal&tmpl=component&titleKey=' . $this->getModalTitleKey()); ?>" 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="component_admin_viewsList">
|
||||
<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>
|
@@ -31,7 +31,7 @@ $edit = "index.php?option=com_componentbuilder&view=components_config&task=compo
|
||||
?>
|
||||
<tr class="row<?php echo $i % 2; ?>">
|
||||
<td class="order nowrap center hidden-phone">
|
||||
<?php if ($canDo->get('component_config.edit.state')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_config.edit.state')): ?>
|
||||
<?php
|
||||
$iconClass = '';
|
||||
if (!$this->saveOrder)
|
||||
@@ -51,7 +51,7 @@ $edit = "index.php?option=com_componentbuilder&view=components_config&task=compo
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="nowrap center">
|
||||
<?php if ($canDo->get('component_config.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_config.edit')): ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('grid.id', $i, $item->id); ?>
|
||||
@@ -67,18 +67,34 @@ $edit = "index.php?option=com_componentbuilder&view=components_config&task=compo
|
||||
</td>
|
||||
<td class="nowrap">
|
||||
<div class="name">
|
||||
<?php if ($canDo->get('component_config.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_config.edit')): ?>
|
||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
||||
<?php if ($item->checked_out): ?>
|
||||
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_config.', $canCheckin); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
<?php if (!$this->isModal): ?>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
<?php else: ?>
|
||||
<?php
|
||||
$link = "{$edit}&id={$item->id}";
|
||||
$dataId = $item->{$this->getModalTitleKey()} ?? 0;
|
||||
$itemHtml = '<a href="' . $this->escape($link, false) . '">' . $this->escape($item->joomla_component_system_name, false) . '</a>';
|
||||
$attribs = 'data-content-select data-content-type="com_componentbuilder.component_config"'
|
||||
. ' data-id="' . $dataId . '"'
|
||||
. ' data-title="' . $this->escape($item->joomla_component_system_name, false) . '"'
|
||||
. ' data-uri="' . $this->escape($link, false) . '"'
|
||||
. ' data-html="' . $this->escape($itemHtml, false) . '"';
|
||||
?>
|
||||
<a class="select-link" href="javascript:void(0)" <?php echo $attribs; ?>>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php if ($canDo->get('component_config.edit.state')) : ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_config.edit.state')) : ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('jgrid.published', $item->published, $i, 'components_config.', true, 'cb'); ?>
|
||||
|
@@ -17,7 +17,7 @@ defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<?php if ($this->canEdit&& $this->canState): ?>
|
||||
<?php if (!$this->isModal && $this->canEdit && $this->canState): ?>
|
||||
<th width="1%" class="nowrap center hidden-phone">
|
||||
<?php echo Html::_('searchtools.sort', '', 'a.ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?>
|
||||
</th>
|
||||
|
63
admin/tmpl/components_config/modal.php
Normal file
63
admin/tmpl/components_config/modal.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Session\Session;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Components_config\HtmlView $this */
|
||||
|
||||
$app = Factory::getApplication();
|
||||
|
||||
if ($app->isClient('site')) {
|
||||
Session::checkToken('get') or die(Text::_('JINVALID_TOKEN'));
|
||||
}
|
||||
|
||||
// dynamic selection of title key (link in modal)
|
||||
$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word');
|
||||
|
||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||
$wa = $this->getDocument()->getWebAssetManager();
|
||||
$wa->useScript('core')
|
||||
->useScript('multiselect')
|
||||
->useScript('modal-content-select');
|
||||
?>
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&view=components_config&layout=modal&tmpl=component&titleKey=' . $this->getModalTitleKey()); ?>" 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="component_configList">
|
||||
<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>
|
@@ -31,7 +31,7 @@ $edit = "index.php?option=com_componentbuilder&view=components_custom_admin_menu
|
||||
?>
|
||||
<tr class="row<?php echo $i % 2; ?>">
|
||||
<td class="order nowrap center hidden-phone">
|
||||
<?php if ($canDo->get('component_custom_admin_menus.edit.state')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_custom_admin_menus.edit.state')): ?>
|
||||
<?php
|
||||
$iconClass = '';
|
||||
if (!$this->saveOrder)
|
||||
@@ -51,7 +51,7 @@ $edit = "index.php?option=com_componentbuilder&view=components_custom_admin_menu
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="nowrap center">
|
||||
<?php if ($canDo->get('component_custom_admin_menus.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_custom_admin_menus.edit')): ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('grid.id', $i, $item->id); ?>
|
||||
@@ -67,18 +67,34 @@ $edit = "index.php?option=com_componentbuilder&view=components_custom_admin_menu
|
||||
</td>
|
||||
<td class="nowrap">
|
||||
<div class="name">
|
||||
<?php if ($canDo->get('component_custom_admin_menus.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_custom_admin_menus.edit')): ?>
|
||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
||||
<?php if ($item->checked_out): ?>
|
||||
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_custom_admin_menus.', $canCheckin); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
<?php if (!$this->isModal): ?>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
<?php else: ?>
|
||||
<?php
|
||||
$link = "{$edit}&id={$item->id}";
|
||||
$dataId = $item->{$this->getModalTitleKey()} ?? 0;
|
||||
$itemHtml = '<a href="' . $this->escape($link, false) . '">' . $this->escape($item->joomla_component_system_name, false) . '</a>';
|
||||
$attribs = 'data-content-select data-content-type="com_componentbuilder.component_custom_admin_menus"'
|
||||
. ' data-id="' . $dataId . '"'
|
||||
. ' data-title="' . $this->escape($item->joomla_component_system_name, false) . '"'
|
||||
. ' data-uri="' . $this->escape($link, false) . '"'
|
||||
. ' data-html="' . $this->escape($itemHtml, false) . '"';
|
||||
?>
|
||||
<a class="select-link" href="javascript:void(0)" <?php echo $attribs; ?>>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php if ($canDo->get('component_custom_admin_menus.edit.state')) : ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_custom_admin_menus.edit.state')) : ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('jgrid.published', $item->published, $i, 'components_custom_admin_menus.', true, 'cb'); ?>
|
||||
|
@@ -17,7 +17,7 @@ defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<?php if ($this->canEdit&& $this->canState): ?>
|
||||
<?php if (!$this->isModal && $this->canEdit && $this->canState): ?>
|
||||
<th width="1%" class="nowrap center hidden-phone">
|
||||
<?php echo Html::_('searchtools.sort', '', 'a.ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?>
|
||||
</th>
|
||||
|
63
admin/tmpl/components_custom_admin_menus/modal.php
Normal file
63
admin/tmpl/components_custom_admin_menus/modal.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Session\Session;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Components_custom_admin_menus\HtmlView $this */
|
||||
|
||||
$app = Factory::getApplication();
|
||||
|
||||
if ($app->isClient('site')) {
|
||||
Session::checkToken('get') or die(Text::_('JINVALID_TOKEN'));
|
||||
}
|
||||
|
||||
// dynamic selection of title key (link in modal)
|
||||
$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word');
|
||||
|
||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||
$wa = $this->getDocument()->getWebAssetManager();
|
||||
$wa->useScript('core')
|
||||
->useScript('multiselect')
|
||||
->useScript('modal-content-select');
|
||||
?>
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&view=components_custom_admin_menus&layout=modal&tmpl=component&titleKey=' . $this->getModalTitleKey()); ?>" 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="component_custom_admin_menusList">
|
||||
<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>
|
@@ -31,7 +31,7 @@ $edit = "index.php?option=com_componentbuilder&view=components_custom_admin_view
|
||||
?>
|
||||
<tr class="row<?php echo $i % 2; ?>">
|
||||
<td class="order nowrap center hidden-phone">
|
||||
<?php if ($canDo->get('component_custom_admin_views.edit.state')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_custom_admin_views.edit.state')): ?>
|
||||
<?php
|
||||
$iconClass = '';
|
||||
if (!$this->saveOrder)
|
||||
@@ -51,7 +51,7 @@ $edit = "index.php?option=com_componentbuilder&view=components_custom_admin_view
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="nowrap center">
|
||||
<?php if ($canDo->get('component_custom_admin_views.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_custom_admin_views.edit')): ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('grid.id', $i, $item->id); ?>
|
||||
@@ -67,18 +67,34 @@ $edit = "index.php?option=com_componentbuilder&view=components_custom_admin_view
|
||||
</td>
|
||||
<td class="nowrap">
|
||||
<div class="name">
|
||||
<?php if ($canDo->get('component_custom_admin_views.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_custom_admin_views.edit')): ?>
|
||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
||||
<?php if ($item->checked_out): ?>
|
||||
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_custom_admin_views.', $canCheckin); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
<?php if (!$this->isModal): ?>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
<?php else: ?>
|
||||
<?php
|
||||
$link = "{$edit}&id={$item->id}";
|
||||
$dataId = $item->{$this->getModalTitleKey()} ?? 0;
|
||||
$itemHtml = '<a href="' . $this->escape($link, false) . '">' . $this->escape($item->joomla_component_system_name, false) . '</a>';
|
||||
$attribs = 'data-content-select data-content-type="com_componentbuilder.component_custom_admin_views"'
|
||||
. ' data-id="' . $dataId . '"'
|
||||
. ' data-title="' . $this->escape($item->joomla_component_system_name, false) . '"'
|
||||
. ' data-uri="' . $this->escape($link, false) . '"'
|
||||
. ' data-html="' . $this->escape($itemHtml, false) . '"';
|
||||
?>
|
||||
<a class="select-link" href="javascript:void(0)" <?php echo $attribs; ?>>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php if ($canDo->get('component_custom_admin_views.edit.state')) : ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_custom_admin_views.edit.state')) : ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('jgrid.published', $item->published, $i, 'components_custom_admin_views.', true, 'cb'); ?>
|
||||
|
@@ -17,7 +17,7 @@ defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<?php if ($this->canEdit&& $this->canState): ?>
|
||||
<?php if (!$this->isModal && $this->canEdit && $this->canState): ?>
|
||||
<th width="1%" class="nowrap center hidden-phone">
|
||||
<?php echo Html::_('searchtools.sort', '', 'a.ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?>
|
||||
</th>
|
||||
|
63
admin/tmpl/components_custom_admin_views/modal.php
Normal file
63
admin/tmpl/components_custom_admin_views/modal.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Session\Session;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Components_custom_admin_views\HtmlView $this */
|
||||
|
||||
$app = Factory::getApplication();
|
||||
|
||||
if ($app->isClient('site')) {
|
||||
Session::checkToken('get') or die(Text::_('JINVALID_TOKEN'));
|
||||
}
|
||||
|
||||
// dynamic selection of title key (link in modal)
|
||||
$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word');
|
||||
|
||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||
$wa = $this->getDocument()->getWebAssetManager();
|
||||
$wa->useScript('core')
|
||||
->useScript('multiselect')
|
||||
->useScript('modal-content-select');
|
||||
?>
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&view=components_custom_admin_views&layout=modal&tmpl=component&titleKey=' . $this->getModalTitleKey()); ?>" 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="component_custom_admin_viewsList">
|
||||
<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>
|
@@ -31,7 +31,7 @@ $edit = "index.php?option=com_componentbuilder&view=components_dashboard&task=co
|
||||
?>
|
||||
<tr class="row<?php echo $i % 2; ?>">
|
||||
<td class="order nowrap center hidden-phone">
|
||||
<?php if ($canDo->get('component_dashboard.edit.state')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_dashboard.edit.state')): ?>
|
||||
<?php
|
||||
$iconClass = '';
|
||||
if (!$this->saveOrder)
|
||||
@@ -51,7 +51,7 @@ $edit = "index.php?option=com_componentbuilder&view=components_dashboard&task=co
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="nowrap center">
|
||||
<?php if ($canDo->get('component_dashboard.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_dashboard.edit')): ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('grid.id', $i, $item->id); ?>
|
||||
@@ -67,18 +67,34 @@ $edit = "index.php?option=com_componentbuilder&view=components_dashboard&task=co
|
||||
</td>
|
||||
<td class="nowrap">
|
||||
<div class="name">
|
||||
<?php if ($canDo->get('component_dashboard.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_dashboard.edit')): ?>
|
||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
||||
<?php if ($item->checked_out): ?>
|
||||
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_dashboard.', $canCheckin); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
<?php if (!$this->isModal): ?>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
<?php else: ?>
|
||||
<?php
|
||||
$link = "{$edit}&id={$item->id}";
|
||||
$dataId = $item->{$this->getModalTitleKey()} ?? 0;
|
||||
$itemHtml = '<a href="' . $this->escape($link, false) . '">' . $this->escape($item->joomla_component_system_name, false) . '</a>';
|
||||
$attribs = 'data-content-select data-content-type="com_componentbuilder.component_dashboard"'
|
||||
. ' data-id="' . $dataId . '"'
|
||||
. ' data-title="' . $this->escape($item->joomla_component_system_name, false) . '"'
|
||||
. ' data-uri="' . $this->escape($link, false) . '"'
|
||||
. ' data-html="' . $this->escape($itemHtml, false) . '"';
|
||||
?>
|
||||
<a class="select-link" href="javascript:void(0)" <?php echo $attribs; ?>>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php if ($canDo->get('component_dashboard.edit.state')) : ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_dashboard.edit.state')) : ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('jgrid.published', $item->published, $i, 'components_dashboard.', true, 'cb'); ?>
|
||||
|
@@ -17,7 +17,7 @@ defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<?php if ($this->canEdit&& $this->canState): ?>
|
||||
<?php if (!$this->isModal && $this->canEdit && $this->canState): ?>
|
||||
<th width="1%" class="nowrap center hidden-phone">
|
||||
<?php echo Html::_('searchtools.sort', '', 'a.ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?>
|
||||
</th>
|
||||
|
63
admin/tmpl/components_dashboard/modal.php
Normal file
63
admin/tmpl/components_dashboard/modal.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Session\Session;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Components_dashboard\HtmlView $this */
|
||||
|
||||
$app = Factory::getApplication();
|
||||
|
||||
if ($app->isClient('site')) {
|
||||
Session::checkToken('get') or die(Text::_('JINVALID_TOKEN'));
|
||||
}
|
||||
|
||||
// dynamic selection of title key (link in modal)
|
||||
$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word');
|
||||
|
||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||
$wa = $this->getDocument()->getWebAssetManager();
|
||||
$wa->useScript('core')
|
||||
->useScript('multiselect')
|
||||
->useScript('modal-content-select');
|
||||
?>
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&view=components_dashboard&layout=modal&tmpl=component&titleKey=' . $this->getModalTitleKey()); ?>" 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="component_dashboardList">
|
||||
<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>
|
@@ -31,7 +31,7 @@ $edit = "index.php?option=com_componentbuilder&view=components_files_folders&tas
|
||||
?>
|
||||
<tr class="row<?php echo $i % 2; ?>">
|
||||
<td class="order nowrap center hidden-phone">
|
||||
<?php if ($canDo->get('component_files_folders.edit.state')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_files_folders.edit.state')): ?>
|
||||
<?php
|
||||
$iconClass = '';
|
||||
if (!$this->saveOrder)
|
||||
@@ -51,7 +51,7 @@ $edit = "index.php?option=com_componentbuilder&view=components_files_folders&tas
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="nowrap center">
|
||||
<?php if ($canDo->get('component_files_folders.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_files_folders.edit')): ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('grid.id', $i, $item->id); ?>
|
||||
@@ -67,18 +67,34 @@ $edit = "index.php?option=com_componentbuilder&view=components_files_folders&tas
|
||||
</td>
|
||||
<td class="nowrap">
|
||||
<div class="name">
|
||||
<?php if ($canDo->get('component_files_folders.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_files_folders.edit')): ?>
|
||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
||||
<?php if ($item->checked_out): ?>
|
||||
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_files_folders.', $canCheckin); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
<?php if (!$this->isModal): ?>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
<?php else: ?>
|
||||
<?php
|
||||
$link = "{$edit}&id={$item->id}";
|
||||
$dataId = $item->{$this->getModalTitleKey()} ?? 0;
|
||||
$itemHtml = '<a href="' . $this->escape($link, false) . '">' . $this->escape($item->joomla_component_system_name, false) . '</a>';
|
||||
$attribs = 'data-content-select data-content-type="com_componentbuilder.component_files_folders"'
|
||||
. ' data-id="' . $dataId . '"'
|
||||
. ' data-title="' . $this->escape($item->joomla_component_system_name, false) . '"'
|
||||
. ' data-uri="' . $this->escape($link, false) . '"'
|
||||
. ' data-html="' . $this->escape($itemHtml, false) . '"';
|
||||
?>
|
||||
<a class="select-link" href="javascript:void(0)" <?php echo $attribs; ?>>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php if ($canDo->get('component_files_folders.edit.state')) : ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_files_folders.edit.state')) : ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('jgrid.published', $item->published, $i, 'components_files_folders.', true, 'cb'); ?>
|
||||
|
@@ -17,7 +17,7 @@ defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<?php if ($this->canEdit&& $this->canState): ?>
|
||||
<?php if (!$this->isModal && $this->canEdit && $this->canState): ?>
|
||||
<th width="1%" class="nowrap center hidden-phone">
|
||||
<?php echo Html::_('searchtools.sort', '', 'a.ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?>
|
||||
</th>
|
||||
|
63
admin/tmpl/components_files_folders/modal.php
Normal file
63
admin/tmpl/components_files_folders/modal.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Session\Session;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Components_files_folders\HtmlView $this */
|
||||
|
||||
$app = Factory::getApplication();
|
||||
|
||||
if ($app->isClient('site')) {
|
||||
Session::checkToken('get') or die(Text::_('JINVALID_TOKEN'));
|
||||
}
|
||||
|
||||
// dynamic selection of title key (link in modal)
|
||||
$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word');
|
||||
|
||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||
$wa = $this->getDocument()->getWebAssetManager();
|
||||
$wa->useScript('core')
|
||||
->useScript('multiselect')
|
||||
->useScript('modal-content-select');
|
||||
?>
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&view=components_files_folders&layout=modal&tmpl=component&titleKey=' . $this->getModalTitleKey()); ?>" 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="component_files_foldersList">
|
||||
<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>
|
@@ -31,7 +31,7 @@ $edit = "index.php?option=com_componentbuilder&view=components_modules&task=comp
|
||||
?>
|
||||
<tr class="row<?php echo $i % 2; ?>">
|
||||
<td class="order nowrap center hidden-phone">
|
||||
<?php if ($canDo->get('component_modules.edit.state')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_modules.edit.state')): ?>
|
||||
<?php
|
||||
$iconClass = '';
|
||||
if (!$this->saveOrder)
|
||||
@@ -51,7 +51,7 @@ $edit = "index.php?option=com_componentbuilder&view=components_modules&task=comp
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="nowrap center">
|
||||
<?php if ($canDo->get('component_modules.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_modules.edit')): ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('grid.id', $i, $item->id); ?>
|
||||
@@ -67,18 +67,34 @@ $edit = "index.php?option=com_componentbuilder&view=components_modules&task=comp
|
||||
</td>
|
||||
<td class="nowrap">
|
||||
<div class="name">
|
||||
<?php if ($canDo->get('component_modules.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_modules.edit')): ?>
|
||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
||||
<?php if ($item->checked_out): ?>
|
||||
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_modules.', $canCheckin); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
<?php if (!$this->isModal): ?>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
<?php else: ?>
|
||||
<?php
|
||||
$link = "{$edit}&id={$item->id}";
|
||||
$dataId = $item->{$this->getModalTitleKey()} ?? 0;
|
||||
$itemHtml = '<a href="' . $this->escape($link, false) . '">' . $this->escape($item->joomla_component_system_name, false) . '</a>';
|
||||
$attribs = 'data-content-select data-content-type="com_componentbuilder.component_modules"'
|
||||
. ' data-id="' . $dataId . '"'
|
||||
. ' data-title="' . $this->escape($item->joomla_component_system_name, false) . '"'
|
||||
. ' data-uri="' . $this->escape($link, false) . '"'
|
||||
. ' data-html="' . $this->escape($itemHtml, false) . '"';
|
||||
?>
|
||||
<a class="select-link" href="javascript:void(0)" <?php echo $attribs; ?>>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php if ($canDo->get('component_modules.edit.state')) : ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_modules.edit.state')) : ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('jgrid.published', $item->published, $i, 'components_modules.', true, 'cb'); ?>
|
||||
|
@@ -17,7 +17,7 @@ defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<?php if ($this->canEdit&& $this->canState): ?>
|
||||
<?php if (!$this->isModal && $this->canEdit && $this->canState): ?>
|
||||
<th width="1%" class="nowrap center hidden-phone">
|
||||
<?php echo Html::_('searchtools.sort', '', 'a.ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?>
|
||||
</th>
|
||||
|
63
admin/tmpl/components_modules/modal.php
Normal file
63
admin/tmpl/components_modules/modal.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Session\Session;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Components_modules\HtmlView $this */
|
||||
|
||||
$app = Factory::getApplication();
|
||||
|
||||
if ($app->isClient('site')) {
|
||||
Session::checkToken('get') or die(Text::_('JINVALID_TOKEN'));
|
||||
}
|
||||
|
||||
// dynamic selection of title key (link in modal)
|
||||
$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word');
|
||||
|
||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||
$wa = $this->getDocument()->getWebAssetManager();
|
||||
$wa->useScript('core')
|
||||
->useScript('multiselect')
|
||||
->useScript('modal-content-select');
|
||||
?>
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&view=components_modules&layout=modal&tmpl=component&titleKey=' . $this->getModalTitleKey()); ?>" 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="component_modulesList">
|
||||
<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>
|
@@ -31,7 +31,7 @@ $edit = "index.php?option=com_componentbuilder&view=components_mysql_tweaks&task
|
||||
?>
|
||||
<tr class="row<?php echo $i % 2; ?>">
|
||||
<td class="order nowrap center hidden-phone">
|
||||
<?php if ($canDo->get('component_mysql_tweaks.edit.state')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_mysql_tweaks.edit.state')): ?>
|
||||
<?php
|
||||
$iconClass = '';
|
||||
if (!$this->saveOrder)
|
||||
@@ -51,7 +51,7 @@ $edit = "index.php?option=com_componentbuilder&view=components_mysql_tweaks&task
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="nowrap center">
|
||||
<?php if ($canDo->get('component_mysql_tweaks.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_mysql_tweaks.edit')): ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('grid.id', $i, $item->id); ?>
|
||||
@@ -67,18 +67,34 @@ $edit = "index.php?option=com_componentbuilder&view=components_mysql_tweaks&task
|
||||
</td>
|
||||
<td class="nowrap">
|
||||
<div class="name">
|
||||
<?php if ($canDo->get('component_mysql_tweaks.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_mysql_tweaks.edit')): ?>
|
||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
||||
<?php if ($item->checked_out): ?>
|
||||
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_mysql_tweaks.', $canCheckin); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
<?php if (!$this->isModal): ?>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
<?php else: ?>
|
||||
<?php
|
||||
$link = "{$edit}&id={$item->id}";
|
||||
$dataId = $item->{$this->getModalTitleKey()} ?? 0;
|
||||
$itemHtml = '<a href="' . $this->escape($link, false) . '">' . $this->escape($item->joomla_component_system_name, false) . '</a>';
|
||||
$attribs = 'data-content-select data-content-type="com_componentbuilder.component_mysql_tweaks"'
|
||||
. ' data-id="' . $dataId . '"'
|
||||
. ' data-title="' . $this->escape($item->joomla_component_system_name, false) . '"'
|
||||
. ' data-uri="' . $this->escape($link, false) . '"'
|
||||
. ' data-html="' . $this->escape($itemHtml, false) . '"';
|
||||
?>
|
||||
<a class="select-link" href="javascript:void(0)" <?php echo $attribs; ?>>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php if ($canDo->get('component_mysql_tweaks.edit.state')) : ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_mysql_tweaks.edit.state')) : ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('jgrid.published', $item->published, $i, 'components_mysql_tweaks.', true, 'cb'); ?>
|
||||
|
@@ -17,7 +17,7 @@ defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<?php if ($this->canEdit&& $this->canState): ?>
|
||||
<?php if (!$this->isModal && $this->canEdit && $this->canState): ?>
|
||||
<th width="1%" class="nowrap center hidden-phone">
|
||||
<?php echo Html::_('searchtools.sort', '', 'a.ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?>
|
||||
</th>
|
||||
|
63
admin/tmpl/components_mysql_tweaks/modal.php
Normal file
63
admin/tmpl/components_mysql_tweaks/modal.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Session\Session;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Components_mysql_tweaks\HtmlView $this */
|
||||
|
||||
$app = Factory::getApplication();
|
||||
|
||||
if ($app->isClient('site')) {
|
||||
Session::checkToken('get') or die(Text::_('JINVALID_TOKEN'));
|
||||
}
|
||||
|
||||
// dynamic selection of title key (link in modal)
|
||||
$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word');
|
||||
|
||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||
$wa = $this->getDocument()->getWebAssetManager();
|
||||
$wa->useScript('core')
|
||||
->useScript('multiselect')
|
||||
->useScript('modal-content-select');
|
||||
?>
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&view=components_mysql_tweaks&layout=modal&tmpl=component&titleKey=' . $this->getModalTitleKey()); ?>" 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="component_mysql_tweaksList">
|
||||
<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>
|
@@ -31,7 +31,7 @@ $edit = "index.php?option=com_componentbuilder&view=components_placeholders&task
|
||||
?>
|
||||
<tr class="row<?php echo $i % 2; ?>">
|
||||
<td class="order nowrap center hidden-phone">
|
||||
<?php if ($canDo->get('component_placeholders.edit.state')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_placeholders.edit.state')): ?>
|
||||
<?php
|
||||
$iconClass = '';
|
||||
if (!$this->saveOrder)
|
||||
@@ -51,7 +51,7 @@ $edit = "index.php?option=com_componentbuilder&view=components_placeholders&task
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="nowrap center">
|
||||
<?php if ($canDo->get('component_placeholders.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_placeholders.edit')): ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('grid.id', $i, $item->id); ?>
|
||||
@@ -67,18 +67,34 @@ $edit = "index.php?option=com_componentbuilder&view=components_placeholders&task
|
||||
</td>
|
||||
<td class="nowrap">
|
||||
<div class="name">
|
||||
<?php if ($canDo->get('component_placeholders.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_placeholders.edit')): ?>
|
||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
||||
<?php if ($item->checked_out): ?>
|
||||
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_placeholders.', $canCheckin); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
<?php if (!$this->isModal): ?>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
<?php else: ?>
|
||||
<?php
|
||||
$link = "{$edit}&id={$item->id}";
|
||||
$dataId = $item->{$this->getModalTitleKey()} ?? 0;
|
||||
$itemHtml = '<a href="' . $this->escape($link, false) . '">' . $this->escape($item->joomla_component_system_name, false) . '</a>';
|
||||
$attribs = 'data-content-select data-content-type="com_componentbuilder.component_placeholders"'
|
||||
. ' data-id="' . $dataId . '"'
|
||||
. ' data-title="' . $this->escape($item->joomla_component_system_name, false) . '"'
|
||||
. ' data-uri="' . $this->escape($link, false) . '"'
|
||||
. ' data-html="' . $this->escape($itemHtml, false) . '"';
|
||||
?>
|
||||
<a class="select-link" href="javascript:void(0)" <?php echo $attribs; ?>>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php if ($canDo->get('component_placeholders.edit.state')) : ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_placeholders.edit.state')) : ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('jgrid.published', $item->published, $i, 'components_placeholders.', true, 'cb'); ?>
|
||||
|
@@ -17,7 +17,7 @@ defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<?php if ($this->canEdit&& $this->canState): ?>
|
||||
<?php if (!$this->isModal && $this->canEdit && $this->canState): ?>
|
||||
<th width="1%" class="nowrap center hidden-phone">
|
||||
<?php echo Html::_('searchtools.sort', '', 'a.ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?>
|
||||
</th>
|
||||
|
63
admin/tmpl/components_placeholders/modal.php
Normal file
63
admin/tmpl/components_placeholders/modal.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Session\Session;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Components_placeholders\HtmlView $this */
|
||||
|
||||
$app = Factory::getApplication();
|
||||
|
||||
if ($app->isClient('site')) {
|
||||
Session::checkToken('get') or die(Text::_('JINVALID_TOKEN'));
|
||||
}
|
||||
|
||||
// dynamic selection of title key (link in modal)
|
||||
$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word');
|
||||
|
||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||
$wa = $this->getDocument()->getWebAssetManager();
|
||||
$wa->useScript('core')
|
||||
->useScript('multiselect')
|
||||
->useScript('modal-content-select');
|
||||
?>
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&view=components_placeholders&layout=modal&tmpl=component&titleKey=' . $this->getModalTitleKey()); ?>" 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="component_placeholdersList">
|
||||
<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>
|
@@ -31,7 +31,7 @@ $edit = "index.php?option=com_componentbuilder&view=components_plugins&task=comp
|
||||
?>
|
||||
<tr class="row<?php echo $i % 2; ?>">
|
||||
<td class="order nowrap center hidden-phone">
|
||||
<?php if ($canDo->get('component_plugins.edit.state')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_plugins.edit.state')): ?>
|
||||
<?php
|
||||
$iconClass = '';
|
||||
if (!$this->saveOrder)
|
||||
@@ -51,7 +51,7 @@ $edit = "index.php?option=com_componentbuilder&view=components_plugins&task=comp
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="nowrap center">
|
||||
<?php if ($canDo->get('component_plugins.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_plugins.edit')): ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('grid.id', $i, $item->id); ?>
|
||||
@@ -67,18 +67,34 @@ $edit = "index.php?option=com_componentbuilder&view=components_plugins&task=comp
|
||||
</td>
|
||||
<td class="nowrap">
|
||||
<div class="name">
|
||||
<?php if ($canDo->get('component_plugins.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_plugins.edit')): ?>
|
||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
||||
<?php if ($item->checked_out): ?>
|
||||
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_plugins.', $canCheckin); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
<?php if (!$this->isModal): ?>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
<?php else: ?>
|
||||
<?php
|
||||
$link = "{$edit}&id={$item->id}";
|
||||
$dataId = $item->{$this->getModalTitleKey()} ?? 0;
|
||||
$itemHtml = '<a href="' . $this->escape($link, false) . '">' . $this->escape($item->joomla_component_system_name, false) . '</a>';
|
||||
$attribs = 'data-content-select data-content-type="com_componentbuilder.component_plugins"'
|
||||
. ' data-id="' . $dataId . '"'
|
||||
. ' data-title="' . $this->escape($item->joomla_component_system_name, false) . '"'
|
||||
. ' data-uri="' . $this->escape($link, false) . '"'
|
||||
. ' data-html="' . $this->escape($itemHtml, false) . '"';
|
||||
?>
|
||||
<a class="select-link" href="javascript:void(0)" <?php echo $attribs; ?>>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php if ($canDo->get('component_plugins.edit.state')) : ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_plugins.edit.state')) : ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('jgrid.published', $item->published, $i, 'components_plugins.', true, 'cb'); ?>
|
||||
|
@@ -17,7 +17,7 @@ defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<?php if ($this->canEdit&& $this->canState): ?>
|
||||
<?php if (!$this->isModal && $this->canEdit && $this->canState): ?>
|
||||
<th width="1%" class="nowrap center hidden-phone">
|
||||
<?php echo Html::_('searchtools.sort', '', 'a.ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?>
|
||||
</th>
|
||||
|
63
admin/tmpl/components_plugins/modal.php
Normal file
63
admin/tmpl/components_plugins/modal.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Session\Session;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Components_plugins\HtmlView $this */
|
||||
|
||||
$app = Factory::getApplication();
|
||||
|
||||
if ($app->isClient('site')) {
|
||||
Session::checkToken('get') or die(Text::_('JINVALID_TOKEN'));
|
||||
}
|
||||
|
||||
// dynamic selection of title key (link in modal)
|
||||
$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word');
|
||||
|
||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||
$wa = $this->getDocument()->getWebAssetManager();
|
||||
$wa->useScript('core')
|
||||
->useScript('multiselect')
|
||||
->useScript('modal-content-select');
|
||||
?>
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&view=components_plugins&layout=modal&tmpl=component&titleKey=' . $this->getModalTitleKey()); ?>" 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="component_pluginsList">
|
||||
<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>
|
@@ -31,7 +31,7 @@ $edit = "index.php?option=com_componentbuilder&view=components_routers&task=comp
|
||||
?>
|
||||
<tr class="row<?php echo $i % 2; ?>">
|
||||
<td class="order nowrap center hidden-phone">
|
||||
<?php if ($canDo->get('component_router.edit.state')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_router.edit.state')): ?>
|
||||
<?php
|
||||
$iconClass = '';
|
||||
if (!$this->saveOrder)
|
||||
@@ -51,7 +51,7 @@ $edit = "index.php?option=com_componentbuilder&view=components_routers&task=comp
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="nowrap center">
|
||||
<?php if ($canDo->get('component_router.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_router.edit')): ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('grid.id', $i, $item->id); ?>
|
||||
@@ -67,13 +67,29 @@ $edit = "index.php?option=com_componentbuilder&view=components_routers&task=comp
|
||||
</td>
|
||||
<td class="nowrap">
|
||||
<div class="name">
|
||||
<?php if ($canDo->get('component_router.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_router.edit')): ?>
|
||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
||||
<?php if ($item->checked_out): ?>
|
||||
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_routers.', $canCheckin); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
<?php if (!$this->isModal): ?>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
<?php else: ?>
|
||||
<?php
|
||||
$link = "{$edit}&id={$item->id}";
|
||||
$dataId = $item->{$this->getModalTitleKey()} ?? 0;
|
||||
$itemHtml = '<a href="' . $this->escape($link, false) . '">' . $this->escape($item->joomla_component_system_name, false) . '</a>';
|
||||
$attribs = 'data-content-select data-content-type="com_componentbuilder.component_router"'
|
||||
. ' data-id="' . $dataId . '"'
|
||||
. ' data-title="' . $this->escape($item->joomla_component_system_name, false) . '"'
|
||||
. ' data-uri="' . $this->escape($link, false) . '"'
|
||||
. ' data-html="' . $this->escape($itemHtml, false) . '"';
|
||||
?>
|
||||
<a class="select-link" href="javascript:void(0)" <?php echo $attribs; ?>>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
@@ -87,7 +103,7 @@ $edit = "index.php?option=com_componentbuilder&view=components_routers&task=comp
|
||||
<?php echo Text::_($item->mode_methods); ?>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php if ($canDo->get('component_router.edit.state')) : ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_router.edit.state')) : ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('jgrid.published', $item->published, $i, 'components_routers.', true, 'cb'); ?>
|
||||
|
@@ -17,7 +17,7 @@ defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<?php if ($this->canEdit&& $this->canState): ?>
|
||||
<?php if (!$this->isModal && $this->canEdit && $this->canState): ?>
|
||||
<th width="1%" class="nowrap center hidden-phone">
|
||||
<?php echo Html::_('searchtools.sort', '', 'a.ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?>
|
||||
</th>
|
||||
|
99
admin/tmpl/components_routers/modal.php
Normal file
99
admin/tmpl/components_routers/modal.php
Normal file
@@ -0,0 +1,99 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Session\Session;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/** @var \VDM\Component\Componentbuilder\Administrator\View\Components_routers\HtmlView $this */
|
||||
|
||||
$app = Factory::getApplication();
|
||||
|
||||
if ($app->isClient('site')) {
|
||||
Session::checkToken('get') or die(Text::_('JINVALID_TOKEN'));
|
||||
}
|
||||
|
||||
// dynamic selection of title key (link in modal)
|
||||
$this->modalTitleKey = $app->input->get('titleKey', 'id', 'word');
|
||||
|
||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||
$wa = $this->getDocument()->getWebAssetManager();
|
||||
$wa->useScript('core')
|
||||
->useScript('multiselect')
|
||||
->useScript('modal-content-select');
|
||||
?>
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&view=components_routers&layout=modal&tmpl=component&titleKey=' . $this->getModalTitleKey()); ?>" 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="component_routerList">
|
||||
<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>
|
||||
<script type="text/javascript">
|
||||
// components_routers footer script
|
||||
|
||||
<?php
|
||||
$app = Factory::getApplication();
|
||||
?>
|
||||
function JRouter(link) {
|
||||
<?php
|
||||
if ($app->isClient('site'))
|
||||
{
|
||||
echo 'var url = "'. Uri::root() . '";';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'var url = "";';
|
||||
}
|
||||
?>
|
||||
return url+link;
|
||||
}
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
document.querySelectorAll(".loading-dots").forEach(function(loading_dots) {
|
||||
let x = 0;
|
||||
let intervalId = setInterval(function() {
|
||||
if (!loading_dots.classList.contains("loading-dots")) {
|
||||
clearInterval(intervalId);
|
||||
return;
|
||||
}
|
||||
let dots = ".".repeat(x % 8);
|
||||
loading_dots.textContent = dots;
|
||||
x++;
|
||||
}, 500);
|
||||
});
|
||||
});
|
||||
</script>
|
@@ -31,7 +31,7 @@ $edit = "index.php?option=com_componentbuilder&view=components_site_views&task=c
|
||||
?>
|
||||
<tr class="row<?php echo $i % 2; ?>">
|
||||
<td class="order nowrap center hidden-phone">
|
||||
<?php if ($canDo->get('component_site_views.edit.state')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_site_views.edit.state')): ?>
|
||||
<?php
|
||||
$iconClass = '';
|
||||
if (!$this->saveOrder)
|
||||
@@ -51,7 +51,7 @@ $edit = "index.php?option=com_componentbuilder&view=components_site_views&task=c
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="nowrap center">
|
||||
<?php if ($canDo->get('component_site_views.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_site_views.edit')): ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('grid.id', $i, $item->id); ?>
|
||||
@@ -67,18 +67,34 @@ $edit = "index.php?option=com_componentbuilder&view=components_site_views&task=c
|
||||
</td>
|
||||
<td class="nowrap">
|
||||
<div class="name">
|
||||
<?php if ($canDo->get('component_site_views.edit')): ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_site_views.edit')): ?>
|
||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
||||
<?php if ($item->checked_out): ?>
|
||||
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_site_views.', $canCheckin); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
<?php if (!$this->isModal): ?>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
<?php else: ?>
|
||||
<?php
|
||||
$link = "{$edit}&id={$item->id}";
|
||||
$dataId = $item->{$this->getModalTitleKey()} ?? 0;
|
||||
$itemHtml = '<a href="' . $this->escape($link, false) . '">' . $this->escape($item->joomla_component_system_name, false) . '</a>';
|
||||
$attribs = 'data-content-select data-content-type="com_componentbuilder.component_site_views"'
|
||||
. ' data-id="' . $dataId . '"'
|
||||
. ' data-title="' . $this->escape($item->joomla_component_system_name, false) . '"'
|
||||
. ' data-uri="' . $this->escape($link, false) . '"'
|
||||
. ' data-html="' . $this->escape($itemHtml, false) . '"';
|
||||
?>
|
||||
<a class="select-link" href="javascript:void(0)" <?php echo $attribs; ?>>
|
||||
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php if ($canDo->get('component_site_views.edit.state')) : ?>
|
||||
<?php if (!$this->isModal && $canDo->get('component_site_views.edit.state')) : ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('jgrid.published', $item->published, $i, 'components_site_views.', true, 'cb'); ?>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user