defined('_JEXEC') or die('Restricted access');
function renderElement(&$element) {
echo '<div class="control-group ' . $element->containerClass . (trim($element->error) !== '' ? ' error' : '') . ' span3">';
echo '<label>' . $element->label . '</label>';
echo '<div class="controls">';
echo '<div class="fabrikElement">';
echo $element->element;
echo '</div>';
echo '</div>';
if (trim($element->error) !== '') :
echo '<div class="fabrikErrorMessage help-inline text-danger">';
echo '<i class="icon-warning " data-isicon="true"></i>';
echo $element->error;
echo '</div>';
endif;
echo '</div>';
}
$form = $this->form;
$model = $this->getModel();
$groupTmpl = $model->editable ? 'group' : 'group_details';
$active = ($form->error != '') ? '' : ' fabrikHide';
if ($this->params->get('show_page_heading', 1)) : ?>
<div class="componentheading<?php echo $this->params->get('pageclass_sfx')?>">
<?php echo $this->escape($this->params->get('page_heading')); ?>
</div>
<?php
endif;
if ($this->params->get('show-title', 1)) :?>
<div class="page-header">
<h1><?php echo $form->label;?></h1>
</div>
<?php
endif;
echo $form->intro;
?>
<form method="post" <?php echo $form->attribs?>>
<?php
echo $this->plugintop;
?>
<div class="fabrikMainError alert alert-error fabrikError<?php echo $active?>">
<button class="close" data-dismiss="alert">?</button>
<?php echo $form->error; ?>
</div>
<div class="container-fluid nav">
<div class="span6 pull-right">
<?php
echo $this->loadTemplate('buttons');
?>
</div>
<div class="span6">
<?php
echo $this->loadTemplate('relateddata');
?>
</div>
</div>
<?php
$myPerson = $this->groups['Watch'];
$perElements = $myPerson->elements;
$myVehicle = $this->groups['WatchVehicle'];
$vehElements = $myVehicle->elements;
$myCustExp = $this->groups['WatchCustExp'];
$custExpElements = $myCustExp->elements;
$myCustExp2 = $this->groups['WatchCustExp2'];
$custExpElements2 = $myCustExp2->elements;
$myCustExp3 = $this->groups['WatchCustExp3'];
$custExpElements3 = $myCustExp3->elements;
$myCustExp4 = $this->groups['WatchCustExp4'];
$custExpElements4 = $myCustExp4->elements;
$myCustExp5 = $this->groups['WatchCustExp5'];
$custExpElements5 = $myCustExp5->elements;
/* Watch group */
?>
<fieldset class="<?php echo $myPerson->class; ?>" id="group<?php echo $myPerson->id;?>" style="<?php echo $myPerson->css;?>">
<?php
if ($myPerson->showLegend) :?>
<legend class="legend"><?php echo $myPerson->title;?></legend>
<?php
endif;
if (!empty($myPerson->intro)) : ?>
<div class="groupintro"><?php echo $myPerson->intro ?></div>
<?php
endif;?>
<div class="row-fluid" style="margin-bottom: 20px;">
<div class="span3""><label><?php echo $perElements['id_type']->label; ?></label><?php echo $perElements['id_type']->element; ?></div>
<div class="span3""><label><?php echo $perElements['id_state']->label; ?></label><?php echo $perElements['id_state']->element; ?></div>
<?php
renderElement($perElements['id_num']);
renderElement($perElements['finance_again']);
?>
</div>
<div class="row-fluid" style="margin-bottom: 20px;">
<?php
renderElement($perElements['cust_first_name']);
renderElement($perElements['cust_middle_name']);
renderElement($perElements['cust_last_name']);
renderElement($perElements['cust_dob']);
?>
</div>
<div class="row-fluid" style="margin-bottom: 60px;">
<?php
renderElement($perElements['cust_city']);
renderElement($perElements['cust_state']);
renderElement($perElements['cust_zip']);
?>
</div>
<?php
if (!empty($myPerson->outro)) : ?>
<div class="groupoutro"><?php echo $myPerson->outro ?></div>
<?php
endif;
?>
</fieldset>
<?php
/* WatchCustExp' Group */
?>
<fieldset class="<?php echo $myCustExp->class; ?>" id="group<?php echo $myCustExp->id;?>" style="<?php echo $myCustExp->css;?>">
<?php
if ($myCustExp->showLegend) :?>
<legend class="legend"><?php echo $myCustExp->title;?></legend>
<?php
endif;
if (!empty($myCustExp->intro)) : ?>
<div class="groupintro"><?php echo $myCustExp->intro ?></div>
<?php
endif;
?>
<div class="container-fluid">
<?php
echo '<div class="control-group ' . $custExpElements['cust_exp']->containerClass . (trim($custExpElements['cust_exp']->error) !== '' ? ' error' : '') . ' span3">';
echo '<label class="ceLabel">' . $custExpElements['cust_exp']->label . '</label>';
echo $custExpElements['cust_exp']->element;
if (trim($custExpElements['cust_exp']->error) !== '') :
echo '<div class="fabrikErrorMessage help-inline text-danger">';
echo '<i class="icon-warning " data-isicon="true"></i>';
echo $custExpElements['cust_exp']->error;
echo '</div>';
endif;
echo '</div>';
?>
<div class="span3"><label class="ceLabel"><?php echo $custExpElements2['cust_exp2']->label; ?></label><?php echo $custExpElements2['cust_exp2']->element; ?><label class="ceLabel2"><?php echo $custExpElements3['cust_exp3']->label; ?></label><?php echo $custExpElements3['cust_exp3']->element; ?></div>
<div class="span3"><label class="ceLabel"><?php echo $custExpElements4['cust_exp4']->label; ?></label><?php echo $custExpElements4['cust_exp4']->element; ?></div>
<div class="span3"><label class="ceLabel"><?php echo $custExpElements5['cust_exp5']->label; ?></label><?php echo $custExpElements5['cust_exp5']->element; ?></div>
</div>
<?php
if (!empty($myCustExp->outro)) : ?>
<div class="groupoutro"><?php echo $myCustExp->outro ?></div>
<?php
endif;
?>
</fieldset>
<?php
/* WatchVehicle Group */
?>
<fieldset class="<?php echo $myVehicle->class; ?>" id="group<?php echo $myVehicle->id;?>" style="<?php echo $myVehicle->css;?>">
<?php
if ($myVehicle->showLegend) :?>
<legend class="legend"><?php echo $myVehicle->title;?></legend>
<?php
endif;
if (!empty($myVehicle->intro)) : ?>
<div class="groupintro"><?php echo $myVehicle->intro ?></div>
<?php
endif;
?>
<div class="container-fluid" style="margin-bottom: 20px;">
<?php
renderElement($vehElements['vin']);
renderElement($vehElements['car_year']);
renderElement($vehElements['car_make']);
renderElement($vehElements['car_model']);
?>
</div>
<div class="container-fluid">
<?php
renderElement($vehElements['plate_num']);
?>
</div>
<?php
if (!empty($myVehicle->outro)) : ?>
<div class="groupoutro"><?php echo $myVehicle->outro ?></div>
<?php
endif;
?>
</fieldset>
<div class="row-fluid">
<div class="control-group fabrikElementContainer plg-internalid fb_el_watch___id fabrikHide span2" style="display:none"><?php echo $perElements['id']->label; ?><div class="controls"><div class="fabrikElement"><?php echo $perElements['id']->element; ?></div></div></div></div>
<div class="control-group fabrikElementContainer plg-field fb_el_watch___dealer_id fabrikHide span2" style="display:none"><?php echo $perElements['dealer_id']->label; ?><div class="controls"><div class="fabrikElement"><?php echo $perElements['dealer_id']->element; ?></div></div></div></div>
<div class="control-group fabrikElementContainer plg-date fb_el_watch___created_at fabrikHide span2" style="display:none"><?php echo $perElements['created_at']->label; ?><div class="controls"><div class="fabrikElement"><?php echo $perElements['created_at']->element; ?></div></div></div></div>
<div class="control-group fabrikElementContainer plg-date fb_el_watch___updated_at fabrikHide span2" style="display:none"><?php echo $perElements['updated_at']->label; ?><div class="controls"><div class="fabrikElement"><?php echo $perElements['updated_at']->element; ?></div></div></div></div>
<div class="control-group fabrikElementContainer plg-user fb_el_watch___uid fabrikHide span2" style="display:none"><?php echo $perElements['uid']->label; ?><div class="controls"><div class="fabrikElement"><?php echo $perElements['uid']->element; ?></div></div></div></div>
</div>
<?php
if ($model->editable) : ?>
<div class="fabrikHiddenFields">
<?php echo $this->hiddenFields; ?>
</div>
<?php
endif;
echo $this->pluginbottom;
echo $this->loadTemplate('actions');
?>
</form>
<?php
echo $form->outro;
echo $this->pluginend;
echo FabrikHelperHTML::keepalive();