2020-05-29 01:01:07 +00:00
|
|
|
<?php
|
2021-03-05 03:08:47 +00:00
|
|
|
/**
|
|
|
|
* @package Joomla.Component.Builder
|
|
|
|
*
|
|
|
|
* @created 30th April, 2015
|
2022-07-09 15:45:08 +00:00
|
|
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
|
|
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
2021-03-05 03:08:47 +00:00
|
|
|
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
|
|
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
2024-03-09 19:47:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
use Joomla\CMS\Factory;
|
|
|
|
use Joomla\CMS\Language\Text;
|
|
|
|
use Joomla\CMS\HTML\HTMLHelper as Html;
|
|
|
|
use Joomla\CMS\Layout\LayoutHelper;
|
|
|
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
|
|
|
|
2021-03-05 03:08:47 +00:00
|
|
|
// No direct access to this file
|
2024-03-09 19:47:28 +00:00
|
|
|
defined('JPATH_BASE') or die;
|
2020-05-29 01:01:07 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Make thing clear
|
|
|
|
*
|
|
|
|
* @var JForm $form The form instance for render the section
|
|
|
|
* @var string $basegroup The base group name
|
|
|
|
* @var string $group Current group name
|
|
|
|
* @var array $buttons Array of the buttons that will be rendered
|
|
|
|
*/
|
2021-03-05 03:08:47 +00:00
|
|
|
extract($displayData);
|
|
|
|
|
2020-05-29 01:01:07 +00:00
|
|
|
?>
|
|
|
|
<div
|
|
|
|
class="subform-repeatable-group subform-repeatable-jcb-group-<?php echo $unique_subform_id; ?>"
|
|
|
|
data-base-name="<?php echo $basegroup; ?>"
|
|
|
|
data-group="<?php echo $group; ?>"
|
|
|
|
>
|
|
|
|
<?php if (!empty($buttons)) : ?>
|
|
|
|
<div class="btn-toolbar text-right">
|
|
|
|
<div class="btn-group">
|
|
|
|
<?php if (!empty($buttons['add'])) : ?>
|
2024-03-09 19:47:28 +00:00
|
|
|
<a class="btn btn-mini button btn-success group-add group-add-<?php echo $unique_subform_id; ?>" aria-label="<?php echo Text::_('COM_COMPONENTBUILDER_ADD'); ?>">
|
2020-05-29 01:01:07 +00:00
|
|
|
<span class="icon-plus" aria-hidden="true"></span>
|
|
|
|
</a>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php if (!empty($buttons['remove'])) : ?>
|
2024-03-09 19:47:28 +00:00
|
|
|
<a class="btn btn-mini button btn-danger group-remove group-remove-<?php echo $unique_subform_id; ?>" aria-label="<?php echo Text::_('COM_COMPONENTBUILDER_REMOVE'); ?>">
|
2020-05-29 01:01:07 +00:00
|
|
|
<span class="icon-minus" aria-hidden="true"></span>
|
|
|
|
</a>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php if (!empty($buttons['move'])) : ?>
|
2024-03-09 19:47:28 +00:00
|
|
|
<a class="btn btn-mini button btn-primary group-move group-move-<?php echo $unique_subform_id; ?>" aria-label="<?php echo Text::_('COM_COMPONENTBUILDER_MOVE'); ?>">
|
2020-05-29 01:01:07 +00:00
|
|
|
<span class="icon-move" aria-hidden="true"></span>
|
|
|
|
</a>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<div data-uk-grid-margin="" class="uk-grid">
|
|
|
|
<?php foreach ($form->getGroup('') as $field) : ?>
|
|
|
|
<div class="uk-width-medium-1-4 uk-width-large-1-5">
|
|
|
|
<div class="uk-panel">
|
|
|
|
<?php echo $field->renderField(); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</div>
|
2021-03-05 03:08:47 +00:00
|
|
|
</div>
|