Cost-Benefit-Projection/admin/layouts/intervention/details_above.php

43 lines
1.6 KiB
PHP
Raw Normal View History

2015-12-01 05:06:34 +00:00
<?php
/*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
2019-04-04 11:51:37 +00:00
@version 3.4.x
2019-06-12 20:53:36 +00:00
@build 12th June, 2019
2015-12-01 05:06:34 +00:00
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage details_above.php
@author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
2019-04-04 11:51:37 +00:00
$fields = $displayData->get('fields') ?: array(
2015-12-01 05:06:34 +00:00
'name',
'company',
'country',
2015-12-01 05:06:34 +00:00
'type'
);
2019-04-04 11:51:37 +00:00
$hiddenFields = $displayData->get('hidden_fields') ?: array();
2015-12-01 05:06:34 +00:00
?>
<div class="form-inline form-inline-header">
2019-04-04 11:51:37 +00:00
<?php foreach($fields as $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; ?>
2015-12-01 05:06:34 +00:00
</div>