Added the modal sub subform for the view builder in the Assistant.
This commit is contained in:
@ -29,24 +29,18 @@ defined('JPATH_BASE') or die('Restricted access');
|
||||
*/
|
||||
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')
|
||||
'bottom' => array('builder'),
|
||||
'modal' => array('fields' => array('fields'), 'listview' => array('columns'), 'display' => array('display'))
|
||||
);
|
||||
|
||||
?>
|
||||
<div class="row-fluid">
|
||||
<div class="subform-repeatable-wrapper subform-layout">
|
||||
<div class="subform-repeatable"
|
||||
<div class="subform-repeatable-vdm"
|
||||
data-bt-add="a.group-add-<?php echo $unique_subform_id; ?>"
|
||||
data-bt-remove="a.group-remove-<?php echo $unique_subform_id; ?>"
|
||||
data-bt-move="a.group-move-<?php echo $unique_subform_id; ?>"
|
||||
@ -69,6 +63,7 @@ $subform_fields = array(
|
||||
'fields' => $subform_fields,
|
||||
'basegroup' => $fieldname,
|
||||
'group' => $fieldname . $k,
|
||||
'vdm' => $fieldname . $k,
|
||||
'buttons' => $buttons,
|
||||
'unique_subform_id' => $unique_subform_id,
|
||||
));
|
||||
@ -86,6 +81,7 @@ $subform_fields = array(
|
||||
'fields' => $subform_fields,
|
||||
'basegroup' => $fieldname,
|
||||
'group' => $fieldname . 'X',
|
||||
'vdm' => $fieldname . 'VDM-XX',
|
||||
'buttons' => $buttons,
|
||||
'unique_subform_id' => $unique_subform_id
|
||||
))
|
||||
|
@ -56,7 +56,7 @@ extract($displayData);
|
||||
<div class="uk-width-medium-1-1">
|
||||
<div class="uk-panel">
|
||||
<?php foreach($fields['top'] as $field): ?>
|
||||
<?php echo $form->renderField($field); ?>
|
||||
<?php echo str_replace('[[[VDM]]]', $vdm, $form->renderField($field)); ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
@ -70,7 +70,7 @@ extract($displayData);
|
||||
<div class="uk-width-medium-1-2">
|
||||
<div class="uk-panel uk-panel-box">
|
||||
<?php foreach($_fields as $field): ?>
|
||||
<?php echo $form->renderField($field); ?>
|
||||
<?php echo str_replace('[[[VDM]]]', $vdm, $form->renderField($field)); ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
@ -84,10 +84,29 @@ extract($displayData);
|
||||
<div class="uk-width-medium-1-1">
|
||||
<div class="uk-panel">
|
||||
<?php foreach($fields['bottom'] as $field): ?>
|
||||
<?php echo $form->renderField($field); ?>
|
||||
<?php echo str_replace('[[[VDM]]]', $vdm, $form->renderField($field)); ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($fields['modal'])): ?>
|
||||
<?php foreach($fields['modal'] as $modal => $_fields): ?>
|
||||
<div id="modal-<?php echo $modal; ?>-<?php echo $vdm ?>" class="uk-modal">
|
||||
<div class="uk-modal-dialog uk-modal-dialog-large">
|
||||
<div class="uk-panel">
|
||||
<?php foreach($_fields as $field): ?>
|
||||
<?php echo str_replace('[[[VDM]]]', $vdm, $form->renderField($field)); ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<div class="uk-modal-footer">
|
||||
<div class="uk-clearfix">
|
||||
<button class="uk-float-right uk-button uk-button-success uk-modal-close"><?php echo JText::_('COM_COMPONENTBUILDER_UPDATE'); ?></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user