Resolved gh-363 so that showon will function as expected in the full width layout. Resolved gh-367 by adding a wrapper class around each field in the edit view.

This commit is contained in:
Llewellyn van der Merwe 2019-01-23 16:30:53 +02:00
parent 5c2f0aec63
commit 02de1edb54
No known key found for this signature in database
GPG Key ID: CAD7B16D27AF28C5
235 changed files with 1776 additions and 3026 deletions

View File

@ -144,11 +144,11 @@ TODO
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) + *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder) + *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
+ *First Build*: 30th April, 2015 + *First Build*: 30th April, 2015
+ *Last Build*: 21st January, 2019 + *Last Build*: 23rd January, 2019
+ *Version*: 2.9.8 + *Version*: 2.9.8
+ *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved. + *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt + *License*: GNU General Public License version 2 or later; see LICENSE.txt
+ *Line count*: **195813** + *Line count*: **194592**
+ *Field count*: **1087** + *Field count*: **1087**
+ *File count*: **1275** + *File count*: **1275**
+ *Folder count*: **201** + *Folder count*: **201**

View File

@ -144,11 +144,11 @@ TODO
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) + *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder) + *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
+ *First Build*: 30th April, 2015 + *First Build*: 30th April, 2015
+ *Last Build*: 21st January, 2019 + *Last Build*: 23rd January, 2019
+ *Version*: 2.9.8 + *Version*: 2.9.8
+ *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved. + *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt + *License*: GNU General Public License version 2 or later; see LICENSE.txt
+ *Line count*: **195813** + *Line count*: **194592**
+ *Field count*: **1087** + *Field count*: **1087**
+ *File count*: **1275** + *File count*: **1275**
+ *Folder count*: **201** + *Folder count*: **201**

View File

@ -29,7 +29,6 @@ defined('_JEXEC') or die('Restricted access');
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -38,20 +37,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -23,16 +23,14 @@ $fields = $displayData->get('fields') ?: array(
###LAYOUTITEMS### ###LAYOUTITEMS###
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -25,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -17,7 +17,6 @@ defined('_JEXEC') or die('Restricted access');
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -19,13 +19,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = array( $fields = $displayData->get('fields') ?: array(
###LAYOUTITEMS### ###LAYOUTITEMS###
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field){ <?php foreach($fields as $field): ?>
echo $form->renderField($field); <?php if (in_array($field, $hiddenFields)) : ?>
} ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div> </div>

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = array( $fields = $displayData->get('fields') ?: array(
'admin_view' 'admin_view'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field){ <?php foreach($fields as $field): ?>
echo $form->renderField($field); <?php if (in_array($field, $hiddenFields)) : ?>
} ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div> </div>

View File

@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'tabs' 'tabs'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = array( $fields = $displayData->get('fields') ?: array(
'admin_view' 'admin_view'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field){ <?php foreach($fields as $field): ?>
echo $form->renderField($field); <?php if (in_array($field, $hiddenFields)) : ?>
} ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div> </div>

View File

@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
'addfields' 'addfields'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = array( $fields = $displayData->get('fields') ?: array(
'admin_view' 'admin_view'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field){ <?php foreach($fields as $field): ?>
echo $form->renderField($field); <?php if (in_array($field, $hiddenFields)) : ?>
} ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div> </div>

View File

@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
'addconditions' 'addconditions'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = array( $fields = $displayData->get('fields') ?: array(
'admin_view' 'admin_view'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field){ <?php foreach($fields as $field): ?>
echo $form->renderField($field); <?php if (in_array($field, $hiddenFields)) : ?>
} ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div> </div>

View File

@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
'addrelations' 'addrelations'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -21,16 +21,14 @@ $fields = $displayData->get('fields') ?: array(
'css_views' 'css_views'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -21,16 +21,14 @@ $fields = $displayData->get('fields') ?: array(
'php_model_list' 'php_model_list'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -21,20 +21,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -27,16 +27,14 @@ $fields = $displayData->get('fields') ?: array(
'php_import_ext' 'php_import_ext'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = array( $fields = $displayData->get('fields') ?: array(
'system_name' 'system_name'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field){ <?php foreach($fields as $field): ?>
echo $form->renderField($field); <?php if (in_array($field, $hiddenFields)) : ?>
} ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div> </div>

View File

@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'note_linked_to_notice' 'note_linked_to_notice'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -25,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -22,20 +22,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = array( $fields = $displayData->get('fields') ?: array(
'not_required' 'not_required'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field){ <?php foreach($fields as $field): ?>
echo $form->renderField($field); <?php if (in_array($field, $hiddenFields)) : ?>
} ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div> </div>

View File

@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'note_create_edit_display' 'note_create_edit_display'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -24,20 +24,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -20,20 +20,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -25,16 +25,14 @@ $fields = $displayData->get('fields') ?: array(
'javascript_views_footer' 'javascript_views_footer'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'sql' 'sql'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -25,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -54,16 +54,14 @@ $fields = $displayData->get('fields') ?: array(
'php_document' 'php_document'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -24,16 +24,14 @@ $fields = $displayData->get('fields') ?: array(
'addlinked_views' 'addlinked_views'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = array( $fields = $displayData->get('fields') ?: array(
'joomla_component' 'joomla_component'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field){ <?php foreach($fields as $field): ?>
echo $form->renderField($field); <?php if (in_array($field, $hiddenFields)) : ?>
} ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div> </div>

View File

@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
'addadmin_views' 'addadmin_views'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = array( $fields = $displayData->get('fields') ?: array(
'joomla_component' 'joomla_component'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field){ <?php foreach($fields as $field): ?>
echo $form->renderField($field); <?php if (in_array($field, $hiddenFields)) : ?>
} ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div> </div>

View File

@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'addconfig' 'addconfig'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = array( $fields = $displayData->get('fields') ?: array(
'joomla_component' 'joomla_component'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field){ <?php foreach($fields as $field): ?>
echo $form->renderField($field); <?php if (in_array($field, $hiddenFields)) : ?>
} ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div> </div>

View File

@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'addcustommenus' 'addcustommenus'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = array( $fields = $displayData->get('fields') ?: array(
'joomla_component' 'joomla_component'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field){ <?php foreach($fields as $field): ?>
echo $form->renderField($field); <?php if (in_array($field, $hiddenFields)) : ?>
} ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div> </div>

View File

@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
'addcustom_admin_views' 'addcustom_admin_views'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = array( $fields = $displayData->get('fields') ?: array(
'joomla_component' 'joomla_component'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field){ <?php foreach($fields as $field): ?>
echo $form->renderField($field); <?php if (in_array($field, $hiddenFields)) : ?>
} ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div> </div>

View File

@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
'dashboard_tab' 'dashboard_tab'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -22,16 +22,14 @@ $fields = $displayData->get('fields') ?: array(
'note_constant_paths' 'note_constant_paths'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = array( $fields = $displayData->get('fields') ?: array(
'joomla_component' 'joomla_component'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field){ <?php foreach($fields as $field): ?>
echo $form->renderField($field); <?php if (in_array($field, $hiddenFields)) : ?>
} ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div> </div>

View File

@ -21,16 +21,14 @@ $fields = $displayData->get('fields') ?: array(
'addfolders' 'addfolders'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = array( $fields = $displayData->get('fields') ?: array(
'joomla_component' 'joomla_component'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field){ <?php foreach($fields as $field): ?>
echo $form->renderField($field); <?php if (in_array($field, $hiddenFields)) : ?>
} ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div> </div>

View File

@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'sql_tweak' 'sql_tweak'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = array( $fields = $displayData->get('fields') ?: array(
'joomla_component' 'joomla_component'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field){ <?php foreach($fields as $field): ?>
echo $form->renderField($field); <?php if (in_array($field, $hiddenFields)) : ?>
} ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div> </div>

View File

@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
'addsite_views' 'addsite_views'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = array( $fields = $displayData->get('fields') ?: array(
'joomla_component' 'joomla_component'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field){ <?php foreach($fields as $field): ?>
echo $form->renderField($field); <?php if (in_array($field, $hiddenFields)) : ?>
} ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div> </div>

View File

@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'version_update' 'version_update'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
'php_model' 'php_model'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -21,20 +21,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -14,14 +14,19 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = array( $fields = $displayData->get('fields') ?: array(
'system_name', 'system_name',
'context' 'context'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field){ <?php foreach($fields as $field): ?>
echo $form->renderField($field); <?php if (in_array($field, $hiddenFields)) : ?>
} ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div> </div>

View File

@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'default' 'default'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -25,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -23,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -23,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = array( $fields = $displayData->get('fields') ?: array(
'not_required' 'not_required'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field){ <?php foreach($fields as $field): ?>
echo $form->renderField($field); <?php if (in_array($field, $hiddenFields)) : ?>
} ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div> </div>

View File

@ -25,16 +25,14 @@ $fields = $displayData->get('fields') ?: array(
'css' 'css'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'note_linked_to_notice' 'note_linked_to_notice'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -28,16 +28,14 @@ $fields = $displayData->get('fields') ?: array(
'php_jview' 'php_jview'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -14,15 +14,20 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = array( $fields = $displayData->get('fields') ?: array(
'target', 'target',
'system_name', 'system_name',
'function_name' 'function_name'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field){ <?php foreach($fields as $field): ?>
echo $form->renderField($field); <?php if (in_array($field, $hiddenFields)) : ?>
} ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div> </div>

View File

@ -21,16 +21,14 @@ $fields = $displayData->get('fields') ?: array(
'note_placeholders_explained' 'note_placeholders_explained'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

View File

@ -23,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -22,20 +22,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = array( $fields = $displayData->get('fields') ?: array(
'not_required' 'not_required'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-inline form-inline-header"> <div class="form-inline form-inline-header">
<?php foreach($fields as $field){ <?php foreach($fields as $field): ?>
echo $form->renderField($field); <?php if (in_array($field, $hiddenFields)) : ?>
} ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<?php endforeach; ?>
</div> </div>

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -12,7 +12,6 @@
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$form = $displayData->getForm(); $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields = $displayData->get('hidden_fields') ?: array();
foreach ($fields as $field) ?>
{ <?php foreach($fields as $field): ?>
$field = is_array($field) ? $field : array($field); <?php if (in_array($field, $hiddenFields)) : ?>
foreach ($field as $f) <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
{ <?php endif; ?>
if ($form->getField($f)) <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
{ <?php endforeach; ?>
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
}
echo $form->renderField($f);
break;
}
}
}

View File

@ -20,16 +20,14 @@ $fields = $displayData->get('fields') ?: array(
'php_calculation' 'php_calculation'
); );
$hiddenFields = $displayData->get('hidden_fields') ?: array();
?> ?>
<div class="form-vertical"> <div class="form-vertical">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<div class="control-group"> <?php if (in_array($field, $hiddenFields)) : ?>
<div class="control-label"> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php echo $form->getLabel($field); ?> <?php endif; ?>
</div> <?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
<div class="controls"> <?php endforeach; ?>
<?php echo $form->getInput($field); ?>
</div>
</div>
<?php endforeach; ?>
</div> </div>

Some files were not shown because too many files have changed in this diff Show More