-$gateFunctions = array_translate(paramdeep('gateFunctions'))

- $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(    |
  'id'=>'gate-form',                                                  |
  'type' => 'horizontal',                                             |
  'enableAjaxValidation'=>false,                                      |
));                                                                   |

!= $form->errorSummary($model)
!= $form->textFieldRow($model,'Descrizione',array('class'=>'span5','maxlength'=>250))
!= $form->textFieldRow($model,'Matricola',array('class'=>'span5','maxlength'=>250))
!= $form->textFieldRow($model,'ValidationMaxDelay',array('class'=>'span5','maxlength'=>20))
!= $form->dropDownListRow($model,'Type',Gate::getTypeList(),array('class'=>'span5'))
!= $form->textFieldRow($model,'Gate',array('class'=>'span5','maxlength'=>20))
!= $form->textFieldRow($model,'Enable',array('class'=>'span5','maxlength'=>20))
!= $form->textFieldRow($model,'Code',array('class'=>'span5','maxlength'=>250))
!= $form->textFieldRow($model,'Homologation',array('class'=>'span5','maxlength'=>250))
!= $form->textFieldRow($model,'LifeSignalTimeOut',array('class'=>'span5','maxlength'=>20))
!= $form->dropDownListRow($model,'device_model',DeviceType::getTypeList(),array('class'=>'span5'))
!= $form->dropDownListRow($model,'GateType',Gate::getGateTypeList(),array('class'=>'span5'))
!= $form->dropDownListRow($model,'function',$gateFunctions,array('class'=>'span5'))
!= $form->dropDownListRow($model,'id_group',GateGroup::getGateGroupList(),array('class'=>'span5'))
!= $form->textFieldRow($model,'speed_limit',array('class'=>'span5','maxlength'=>20))
!= $form->textFieldRow($model,'latitude',array('class'=>'span5','maxlength'=>255))
!= $form->textFieldRow($model,'longitude',array('class'=>'span5','maxlength'=>255))
!= $form->textFieldRow($model,'altitude',array('class'=>'span5','maxlength'=>255))
!= $form->textFieldRow($model,'short_name',array('class'=>'span5','maxlength'=>255))
!= $form->textFieldRow($model,'live_url',array('class'=>'span5','maxlength'=>255))
!= $form->textFieldRow($model,'orderIndex',array('class'=>'span5','maxlength'=>20))

.form-actions
  - $this->widget('bootstrap.widgets.TbButton', array(             |
    'buttonType'=>'submit',                                        |
    'type'=>'primary',                                             |
    'label'=>$model->isNewRecord ? t('Create') : t('Save'),        |
    ));                                                            |

- $this->endWidget()

