Release of v6.1.6
Add Health Check buttons to the JCB Compiler and Component list view to verify system PHP configuration. Add the Toolbar Custom Buttons subform to the Global Subform settings for improved usability and presentation. Fix the Field edit view to ensure full compliance with Joomla 6 standards and updated UI/UX conventions. Begin migration from UIkit to Bootstrap 5 to align JCB with Joomla 6+ standards. Complete Bootstrap 5 refactor of all primary views and core UI. Continue phased removal of UIkit with full transition planned for upcoming releases. Fix deprecated JText usage in Admin Custom Tabs area for Joomla 5+ compatibility. #1302. Fix snippet loading for Joomla 6, improving reliability and removing legacy UIkit dependencies during migration. Introduced strict version-aware compilation to ensure libraries are only included when explicitly defined for Joomla 6. Disabled automatic UIkit injection for Joomla 6, preventing auto-loading across custom admin views, site views, templates, and layouts. Migrate Search view for J6 to use Bootstrap and Joomla-native HTML and JavaScript. Remove all manually linked Bootstrap v4 assets from the component. Improve subform ordering fields for clearer display and better readability. Refactor the JavaScript waiting spinner to use solid, native JavaScript with improved page-loading handling.
This commit is contained in:
449 files changed
+10970
-66822
No files matched your search
File renamed without changes.
@@ -1,82 +0,0 @@
|
||||
<?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\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('JPATH_BASE') or die;
|
||||
|
||||
use Joomla\CMS\Form\Form;
|
||||
|
||||
extract($displayData);
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
* -----------------
|
||||
* @var Form $tmpl The Empty form for template
|
||||
* @var array $forms Array of Form instances for render the rows
|
||||
* @var bool $multiple The multiple state for the form field
|
||||
* @var int $min Count of minimum repeating in multiple mode
|
||||
* @var int $max Count of maximum repeating in multiple mode
|
||||
* @var string $name Name of the input field.
|
||||
* @var string $fieldname The field name
|
||||
* @var string $fieldId The field ID
|
||||
* @var string $control The forms control
|
||||
* @var string $label The field label
|
||||
* @var string $description The field description
|
||||
* @var string $class Classes for the container
|
||||
* @var array $buttons Array of the buttons that will be rendered
|
||||
* @var bool $groupByFieldset Whether group the subform fields by it`s fieldset
|
||||
*/
|
||||
if ($multiple) {
|
||||
// Add script
|
||||
Factory::getApplication()
|
||||
->getDocument()
|
||||
->getWebAssetManager()
|
||||
->useScript('webcomponent.field-subform');
|
||||
}
|
||||
|
||||
$class = $class ? ' ' . $class : '';
|
||||
|
||||
$sublayout = 'sectionjcbjfive';
|
||||
|
||||
?>
|
||||
<div class="subform-repeatable-wrapper subform-layout">
|
||||
<joomla-field-subform class="subform-repeatable<?php echo $class; ?>" name="<?php echo $name; ?>"
|
||||
button-add=".group-add" button-remove=".group-remove" button-move="<?php echo empty($buttons['move']) ? '' : '.group-move' ?>"
|
||||
repeatable-element=".subform-repeatable-group" minimum="<?php echo $min; ?>" maximum="<?php echo $max; ?>">
|
||||
<?php if (!empty($buttons['add'])) : ?>
|
||||
<div class="btn-toolbar">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="group-add btn btn-sm button btn-success" aria-label="<?php echo Text::_('COM_COMPONENTBUILDER_ADD'); ?>">
|
||||
<span class="icon-plus icon-white" aria-hidden="true"></span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
foreach ($forms as $k => $form) :
|
||||
echo LayoutHelper::render($sublayout, ['form' => $form, 'basegroup' => $fieldname, 'group' => $fieldname . $k, 'buttons' => $buttons]);
|
||||
endforeach;
|
||||
?>
|
||||
<?php if ($multiple) : ?>
|
||||
<template class="subform-repeatable-template-section hidden"><?php
|
||||
echo trim(LayoutHelper::render($sublayout, ['form' => $tmpl, 'basegroup' => $fieldname, 'group' => $fieldname . 'X', 'buttons' => $buttons]));
|
||||
?></template>
|
||||
<?php endif; ?>
|
||||
</joomla-field-subform>
|
||||
</div>
|
||||
@@ -0,0 +1,124 @@
|
||||
<?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\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('JPATH_BASE') or die;
|
||||
|
||||
use Joomla\CMS\Form\Form;
|
||||
|
||||
extract($displayData);
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
* -----------------
|
||||
* @var Form $tmpl The empty form for the template.
|
||||
* @var array $forms Array of Form instances for rendering the rows.
|
||||
* @var bool $multiple The multiple state for the form field.
|
||||
* @var int $min Count of minimum repeating in multiple mode.
|
||||
* @var int $max Count of maximum repeating in multiple mode.
|
||||
* @var string $name Name of the input field.
|
||||
* @var string $fieldname The field name.
|
||||
* @var string $fieldId The field ID.
|
||||
* @var string $control The forms control.
|
||||
* @var string $label The field label.
|
||||
* @var string $description The field description.
|
||||
* @var string $class Classes for the container.
|
||||
* @var array $buttons Array of the buttons that will be rendered.
|
||||
* @var bool $groupByFieldset Whether to group the subform fields by fieldset.
|
||||
*/
|
||||
|
||||
$tmpl = $displayData['tmpl'] ?? null;
|
||||
$forms = $displayData['forms'] ?? [];
|
||||
$multiple = (bool) ($displayData['multiple'] ?? false);
|
||||
$min = (int) ($displayData['min'] ?? 0);
|
||||
$max = (int) ($displayData['max'] ?? 0);
|
||||
$name = (string) ($displayData['name'] ?? '');
|
||||
$fieldname = (string) ($displayData['fieldname'] ?? '');
|
||||
$fieldId = (string) ($displayData['fieldId'] ?? '');
|
||||
$control = (string) ($displayData['control'] ?? '');
|
||||
$label = (string) ($displayData['label'] ?? '');
|
||||
$description = (string) ($displayData['description'] ?? '');
|
||||
$class = trim((string) ($displayData['class'] ?? ''));
|
||||
$buttons = $displayData['buttons'] ?? [];
|
||||
$groupByFieldset = (bool) ($displayData['groupByFieldset'] ?? false);
|
||||
|
||||
// Kept for backward compatibility with incoming layout data.
|
||||
unset($control, $groupByFieldset);
|
||||
|
||||
if ($multiple)
|
||||
{
|
||||
Factory::getApplication()
|
||||
->getDocument()
|
||||
->getWebAssetManager()
|
||||
->useScript('webcomponent.field-subform');
|
||||
}
|
||||
|
||||
$showAdd = !empty($buttons['add']);
|
||||
$showMove = !empty($buttons['move']);
|
||||
$wrapperClass = $class !== '' ? ' ' . $class : '';
|
||||
$sublayout = 'sectionjcbjsix';
|
||||
$describedById = $fieldId !== '' ? $fieldId . '-desc' : '';
|
||||
$labelId = $fieldId !== '' ? $fieldId . '-lbl' : '';
|
||||
$subformClassName = 'subform-repeatable subform-layout d-block' . $wrapperClass;
|
||||
|
||||
?>
|
||||
<div class="subform-repeatable-wrapper">
|
||||
<joomla-field-subform
|
||||
class="<?php echo $subformClassName; ?>"
|
||||
name="<?php echo $name; ?>"
|
||||
button-add=".group-add"
|
||||
button-remove=".group-remove"
|
||||
button-move="<?php echo $showMove ? '.group-move' : ''; ?>"
|
||||
repeatable-element=".subform-repeatable-group"
|
||||
minimum="<?php echo $min; ?>"
|
||||
maximum="<?php echo $max; ?>"
|
||||
<?php echo $fieldId !== '' ? 'id="' . $fieldId . '"' : ''; ?>
|
||||
>
|
||||
<?php if ($showAdd) : ?>
|
||||
<div class="mb-2">
|
||||
<button
|
||||
type="button"
|
||||
class="group-add btn btn-success btn-sm"
|
||||
aria-label="<?php echo Text::_('COM_COMPONENTBUILDER_ADD'); ?>"
|
||||
title="<?php echo Text::_('COM_COMPONENTBUILDER_ADD'); ?>"
|
||||
>
|
||||
<span class="icon-plus" aria-hidden="true"></span>
|
||||
</button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php foreach ($forms as $k => $form) : ?>
|
||||
<?php
|
||||
if (!$form instanceof Form)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
echo LayoutHelper::render($sublayout,['form' => $form, 'basegroup' => $fieldname, 'group' => $fieldname . $k, 'buttons' => $buttons,]);
|
||||
?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php if ($multiple && $tmpl instanceof Form) : ?>
|
||||
<template class="subform-repeatable-template-section">
|
||||
<?php
|
||||
echo trim(LayoutHelper::render($sublayout, ['form' => $tmpl, 'basegroup' => $fieldname, 'group' => $fieldname . 'X', 'buttons' => $buttons]));
|
||||
?>
|
||||
</template>
|
||||
<?php endif; ?>
|
||||
</joomla-field-subform>
|
||||
</div>
|
||||
@@ -1,66 +0,0 @@
|
||||
<?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\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('JPATH_BASE') or die;
|
||||
|
||||
$base = $displayData['repo']->base ?? null;
|
||||
$path = $displayData['repo']->path ?? null;
|
||||
$type = $displayData['repo']->type ?? 0;
|
||||
$url = "#";
|
||||
if (!empty($base) && !empty($path))
|
||||
{
|
||||
// if the type is GitHub = 2
|
||||
if ($type == 2)
|
||||
{
|
||||
$base = 'https://github.com';
|
||||
}
|
||||
|
||||
$url = "{$base}/{$path}";
|
||||
}
|
||||
$name = $displayData['name'] ?? 'error';
|
||||
$area = $displayData['area'] ?? 'error';
|
||||
$organisation = $displayData['repo']->organisation ?? 'error';
|
||||
$repository = $displayData['repo']->repository ?? 'error';
|
||||
$read_branch = $displayData['repo']->read_branch ?? 'error';
|
||||
$guid = $displayData['repo']->guid ?? 'error';
|
||||
|
||||
?>
|
||||
<div>
|
||||
<div class="uk-card repo-selection-card">
|
||||
<div class="uk-card-header">
|
||||
<?php echo $name; ?>: <a class="uk-link-heading" href="<?php echo $url; ?>" target="_blank" title="<?php echo Text::sprintf('COM_COMPONENTBUILDER_OPEN_THIS_REMOTE_S_REPOSITORY', $name); ?>"><?php echo $url; ?></a>
|
||||
</div>
|
||||
<div class="uk-card-body">
|
||||
<ul class="uk-list uk-list-disc">
|
||||
<li><?php echo Text::_('COM_COMPONENTBUILDER_ORGANISATION'); ?>: <code><?php echo $organisation; ?></code></li>
|
||||
<li><?php echo Text::_('COM_COMPONENTBUILDER_REPOSITORY'); ?>: <code><?php echo $repository; ?></code></li>
|
||||
<li><?php echo Text::_('COM_COMPONENTBUILDER_BRANCH'); ?>: <code><?php echo $read_branch; ?></code></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="uk-card-footer">
|
||||
<button type="button"
|
||||
class="uk-button uk-button-primary uk-width-1-1 select-repo-to-load"
|
||||
data-repo="<?php echo $guid; ?>"
|
||||
data-area="<?php echo $area; ?>">
|
||||
<?php echo Text::sprintf('COM_COMPONENTBUILDER_LOAD_ITEMS_FROM_THIS_S_REPOSITORY', $name); ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -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\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('JPATH_BASE') or die;
|
||||
|
||||
$base = $displayData['repo']->base ?? null;
|
||||
$path = $displayData['repo']->path ?? null;
|
||||
$type = $displayData['repo']->type ?? 0;
|
||||
$url = "#";
|
||||
if (!empty($base) && !empty($path))
|
||||
{
|
||||
// if the type is GitHub = 2
|
||||
if ($type == 2)
|
||||
{
|
||||
$base = 'https://github.com';
|
||||
}
|
||||
|
||||
$url = "{$base}/{$path}";
|
||||
}
|
||||
$name = $displayData['name'] ?? 'error';
|
||||
$area = $displayData['area'] ?? 'error';
|
||||
$organisation = $displayData['repo']->organisation ?? 'error';
|
||||
$repository = $displayData['repo']->repository ?? 'error';
|
||||
$read_branch = $displayData['repo']->read_branch ?? 'error';
|
||||
$guid = $displayData['repo']->guid ?? 'error';
|
||||
|
||||
?>
|
||||
<div class="repo-selection-card-wrapper">
|
||||
<div class="card h-100 repo-selection-card shadow-sm">
|
||||
<div class="card-header">
|
||||
<div class="fw-semibold">
|
||||
<?php echo $this->escape($name); ?>:
|
||||
<a
|
||||
class="link-primary text-break"
|
||||
href="<?php echo $this->escape($url); ?>"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
title="<?php echo $this->escape(Text::sprintf('COM_COMPONENTBUILDER_OPEN_THIS_REMOTE_S_REPOSITORY', $name)); ?>"
|
||||
>
|
||||
<?php echo $this->escape($url); ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<ul class="list-unstyled mb-0">
|
||||
<li class="mb-2">
|
||||
<strong><?php echo Text::_('COM_COMPONENTBUILDER_ORGANISATION'); ?>:</strong>
|
||||
<code><?php echo $this->escape($organisation); ?></code>
|
||||
</li>
|
||||
<li class="mb-2">
|
||||
<strong><?php echo Text::_('COM_COMPONENTBUILDER_REPOSITORY'); ?>:</strong>
|
||||
<code><?php echo $this->escape($repository); ?></code>
|
||||
</li>
|
||||
<li class="mb-0">
|
||||
<strong><?php echo Text::_('COM_COMPONENTBUILDER_BRANCH'); ?>:</strong>
|
||||
<code><?php echo $this->escape($read_branch); ?></code>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="card-footer bg-transparent border-top-0">
|
||||
<div class="d-grid">
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-primary select-repo-to-load"
|
||||
data-repo="<?php echo $this->escape($guid); ?>"
|
||||
data-area="<?php echo $this->escape($area); ?>"
|
||||
>
|
||||
<?php echo Text::sprintf('COM_COMPONENTBUILDER_LOAD_ITEMS_FROM_THIS_S_REPOSITORY', $name); ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,63 +0,0 @@
|
||||
<?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\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('JPATH_BASE') or die;
|
||||
|
||||
use Joomla\CMS\Form\Form;
|
||||
|
||||
extract($displayData);
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
* -----------------
|
||||
* @var Form $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
|
||||
*/
|
||||
|
||||
?>
|
||||
<div class="subform-repeatable-group" data-base-name="<?php echo $basegroup; ?>" data-group="<?php echo $group; ?>">
|
||||
<?php if (!empty($buttons)) : ?>
|
||||
<div class="btn-toolbar text-end">
|
||||
<div class="btn-group">
|
||||
<?php if (!empty($buttons['add'])) :
|
||||
?><button type="button" class="group-add btn btn-sm btn-success" aria-label="<?php echo Text::_('COM_COMPONENTBUILDER_ADD'); ?>"><span class="icon-plus icon-white" aria-hidden="true"></span> </button><?php
|
||||
endif; ?>
|
||||
<?php if (!empty($buttons['remove'])) :
|
||||
?><button type="button" class="group-remove btn btn-sm btn-danger" aria-label="<?php echo Text::_('COM_COMPONENTBUILDER_REMOVE'); ?>"><span class="icon-minus icon-white" aria-hidden="true"></span> </button><?php
|
||||
endif; ?>
|
||||
<?php if (!empty($buttons['move'])) :
|
||||
?><button type="button" class="group-move btn btn-sm btn-primary" aria-label="<?php echo Text::_('COM_COMPONENTBUILDER_MOVE'); ?>"><span class="icon-arrows-alt icon-white" aria-hidden="true"></span> </button><?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>
|
||||
</div>
|
||||
@@ -0,0 +1,116 @@
|
||||
<?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\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('JPATH_BASE') or die;
|
||||
|
||||
use Joomla\CMS\Form\Form;
|
||||
|
||||
extract($displayData);
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
* -----------------
|
||||
* @var Form $form The form instance for rendering 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.
|
||||
*/
|
||||
|
||||
$form = $displayData['form'] ?? null;
|
||||
$basegroup = (string) ($displayData['basegroup'] ?? '');
|
||||
$group = (string) ($displayData['group'] ?? '');
|
||||
$buttons = $displayData['buttons'] ?? [];
|
||||
|
||||
if (!$form instanceof Form)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
$showAdd = !empty($buttons['add']);
|
||||
$showRemove = !empty($buttons['remove']);
|
||||
$showMove = !empty($buttons['move']);
|
||||
|
||||
$fields = $form->getGroup('');
|
||||
|
||||
if (empty($fields))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
?>
|
||||
<div
|
||||
class="subform-repeatable-group card mb-3 position-relative overflow-visible"
|
||||
data-base-name="<?php echo $basegroup; ?>"
|
||||
data-group="<?php echo $group; ?>"
|
||||
>
|
||||
<?php if ($showMove) : ?>
|
||||
<div class="position-absolute top-50 start-0 translate-middle-y z-1" style="margin-left: -1.1rem;">
|
||||
<button
|
||||
type="button"
|
||||
class="group-move btn btn-sm btn-primary shadow-sm px-2 py-3"
|
||||
aria-label="<?php echo Text::_('COM_COMPONENTBUILDER_MOVE'); ?>"
|
||||
title="<?php echo Text::_('COM_COMPONENTBUILDER_MOVE'); ?>"
|
||||
>
|
||||
<span class="icon-arrows-alt" aria-hidden="true"></span>
|
||||
<span class="visually-hidden"><?php echo Text::_('COM_COMPONENTBUILDER_MOVE'); ?></span>
|
||||
</button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($showRemove) : ?>
|
||||
<div class="position-absolute top-0 end-0 z-1" style="margin-top: 0.5rem; margin-right: 0.5rem;">
|
||||
<button
|
||||
type="button"
|
||||
class="group-remove btn btn-sm btn-danger shadow-sm"
|
||||
aria-label="<?php echo Text::_('COM_COMPONENTBUILDER_REMOVE'); ?>"
|
||||
title="<?php echo Text::_('COM_COMPONENTBUILDER_REMOVE'); ?>"
|
||||
>
|
||||
<span class="icon-minus" aria-hidden="true"></span>
|
||||
<span class="visually-hidden"><?php echo Text::_('COM_COMPONENTBUILDER_REMOVE'); ?></span>
|
||||
</button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($showAdd) : ?>
|
||||
<div class="position-absolute bottom-0 end-0 z-1" style="margin-bottom: 0.5rem; margin-right: 0.5rem;">
|
||||
<button
|
||||
type="button"
|
||||
class="group-add btn btn-sm btn-success shadow-sm"
|
||||
aria-label="<?php echo Text::_('COM_COMPONENTBUILDER_ADD'); ?>"
|
||||
title="<?php echo Text::_('COM_COMPONENTBUILDER_ADD'); ?>"
|
||||
>
|
||||
<span class="icon-plus" aria-hidden="true"></span>
|
||||
<span class="visually-hidden"><?php echo Text::_('COM_COMPONENTBUILDER_ADD'); ?></span>
|
||||
</button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="card-body">
|
||||
<div class="row g-3">
|
||||
<?php foreach ($fields as $field) : ?>
|
||||
<div class="col-12 col-md-6 col-xl-4 col-xxl-3">
|
||||
<div class="h-100">
|
||||
<?php echo $field->renderField(); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
+1
-1
@@ -140,7 +140,7 @@ if (!empty($headers))
|
||||
}
|
||||
|
||||
?>
|
||||
<?php // echo LayoutHelper::render('filedisplay', $displayData); ?>
|
||||
<?php // echo LayoutHelper::render('filedisplayjsix', $displayData); ?>
|
||||
<?php if ($map === null): ?>
|
||||
<?php echo Text::_('COM_COMPONENTBUILDER_SPREADSHEET_SEEMS_TO_HAVE_NO_HEADERS_SET_THERE_WAS_AN_ERROR'); ?>
|
||||
<?php else: ?>
|
||||
File renamed without changes.
Reference in new issue
Block a user