* @github Joomla Component Builder * @copyright Copyright (C) 2015 - 2019 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('JPATH_BASE') or die('Restricted access'); /** * Make thing clear * * @var JForm $tmpl The Empty form for template * @var array $forms Array of JForm 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 $fieldname The field name * @var string $control The forms control * @var string $label The field label * @var string $description The field description * @var array $buttons Array of the buttons that will be rendered * @var bool $groupByFieldset Whether group the subform fields by it`s fieldset */ extract($displayData); // Add script if ($multiple) { JHtml::_('jquery.ui', array('core', 'sortable')); JHtml::_('script', 'system/subform-repeatable.js', array('version' => 'auto', 'relative' => true)); } // the subform field layout $subform_fields = array( 'left' => array('name'), 'right' => array('list_name'), 'bottom' => array('builder') ); ?>
$form) : ?> $form, 'fields' => $subform_fields, 'basegroup' => $fieldname, 'group' => $fieldname . $k, 'buttons' => $buttons, 'unique_subform_id' => $unique_subform_id, )); ?>