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.
117 lines
3.5 KiB
PHP
117 lines
3.5 KiB
PHP
<?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>
|