<?php $gateFunctions = array_translate(paramdeep('gateFunctions')); ?>
<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(   'id'=>'gate-form','type' => 'horizontal','enableAjaxValidation'=>false,));; ?>
<?php echo $form->errorSummary($model); ?>
<?php echo $form->textFieldRow($model,'Descrizione',array('class'=>'span5','maxlength'=>250)); ?>
<?php echo $form->textFieldRow($model,'Matricola',array('class'=>'span5','maxlength'=>250)); ?>
<?php echo $form->textFieldRow($model,'ValidationMaxDelay',array('class'=>'span5','maxlength'=>20)); ?>
<?php echo $form->dropDownListRow($model,'Type',Gate::getTypeList(),array('class'=>'span5')); ?>
<?php echo $form->textFieldRow($model,'Gate',array('class'=>'span5','maxlength'=>20)); ?>
<?php echo $form->textFieldRow($model,'Enable',array('class'=>'span5','maxlength'=>20)); ?>
<?php echo $form->textFieldRow($model,'Code',array('class'=>'span5','maxlength'=>250)); ?>
<?php echo $form->textFieldRow($model,'Homologation',array('class'=>'span5','maxlength'=>250)); ?>
<?php echo $form->textFieldRow($model,'LifeSignalTimeOut',array('class'=>'span5','maxlength'=>20)); ?>
<?php echo $form->dropDownListRow($model,'device_model',DeviceType::getTypeList(),array('class'=>'span5')); ?>
<?php echo $form->dropDownListRow($model,'GateType',Gate::getGateTypeList(),array('class'=>'span5')); ?>
<?php echo $form->dropDownListRow($model,'function',$gateFunctions,array('class'=>'span5')); ?>
<?php echo $form->dropDownListRow($model,'id_group',GateGroup::getGateGroupList(),array('class'=>'span5')); ?>
<?php echo $form->textFieldRow($model,'speed_limit',array('class'=>'span5','maxlength'=>20)); ?>
<?php echo $form->textFieldRow($model,'latitude',array('class'=>'span5','maxlength'=>255)); ?>
<?php echo $form->textFieldRow($model,'longitude',array('class'=>'span5','maxlength'=>255)); ?>
<?php echo $form->textFieldRow($model,'altitude',array('class'=>'span5','maxlength'=>255)); ?>
<?php echo $form->textFieldRow($model,'short_name',array('class'=>'span5','maxlength'=>255)); ?>
<?php echo $form->textFieldRow($model,'live_url',array('class'=>'span5','maxlength'=>255)); ?>
<?php echo $form->textFieldRow($model,'orderIndex',array('class'=>'span5','maxlength'=>20)); ?>
<div class="form-actions">
  <?php $this->widget('bootstrap.widgets.TbButton', array(            'buttonType'=>'submit','type'=>'primary','label'=>$model->isNewRecord ? t('Create') : t('Save'),));; ?>
</div>
<?php $this->endWidget(); ?>
