%h3
  = t('Transit')
  = '#'
  = $event->ID

- $signList = $event->speedLimitSignList;
- $lane = $event->LaneID + 1

%table.table.table-striped.table-condensed
  %tbody
    %tr
      %td
        =t('License plate')
      %td
        - if(isset($form))
          - if(Yii::app()->user->checkAccess('license_plate_visibility'))
            != $form->textFieldRow($event, 'VehicleID', array('labelOptions' => array('label' => false)))
          - else   
            ="#######"
        - else
          - if(Yii::app()->user->checkAccess('license_plate_visibility'))
            = $event->VehicleID
          - else
            ="#######"
    %tr
      %td
        =t('Nationality')
      %td
        - if(isset($form))
          != $form->dropDownListRow($event, 'custom_nationality', array_merge(array('' => ''), CountryList::localized()), array('labelOptions' => array('label' => false), 'class' => 'span2 chzn-select', 'data-placeholder' => Yii::t('app', 'Country...')))
        - else
          !=CountryFlag::tagForCountryCode($event->custom_nationality)
          =CountryList::getCountryName($event->custom_nationality)
    %tr
      %td
        =t('Class')
      %td
        - if(isset($form))
          != $form->dropDownListRow($event, 'custom_vehicle_type', array_merge(array('' => ''), VehicleTypes::localized()), array('labelOptions' => array('label' => false), 'class' => 'span2 chzn-select', 'data-placeholder' => Yii::t('app', 'Class...')))
        - else
          != VehicleTypes::tagForVehicleClass($event->custom_vehicle_type)
          =VehicleTypes::getClassName($event->custom_vehicle_type)
    %tr
      %td
        =t('Speed')
      %td
        - if($event->Speed > 0)
          = sprintf("%.1f", $event->Speed)
          = t('km/h')
    %tr
      %td
        =t('Colors')
      %td
        - $colorSet = $event->colorSet
        - if (isset($colorSet) && $colorSet->computed)
          - $this->renderPartial('/shared/_colorSet', array('colors' => $colorSet->getColorsArray(3)))        
    %tr
      %td
        =t('Dangerous Goods')
      %td
        - if(isset($form))
          != $form->textField($event, 'KemlerCode', array('class'=>'span'))
        - else if(isset($report))
          = $event->Kemler   
        - else
          != $this->renderPartial('/shared/_kemlerCode', array('kemlerCode' => $event->KemlerCode))
    - if(Yii::app()->user->checkAccess('view_vehicle_landmarks'))      
      %tr
        %td
          =t('Speed Signs')
        %td
          .speed-limit-form-box
            - if(!is_null($signList))
              - foreach($signList as $sign)
                %img.speed-limit-sign-icon-medium(src="#{Yii::app()->baseUrl}/images/speed-limit-signals/#{$sign}.png")
      %tr
        %td
          =t('Rear panels')
        %td
          .rear-panel-form-box
            - if($event->yellowBarType)
              %img.yellow-bar-sign-icon-medium(src="#{Yii::app()->baseUrl}/images/vehicle-signs/yb_#{$event->yellowBarType}.png")
              
    %tr
      %td
        =t('Date')
      %td
        =DateHelper::formatLocalDate($event->StartDateTime)
    %tr
      %td
        =t('Time')
      %td
        =DateHelper::formatISO9075Time($event->StartDateTime)
    %tr
      %td
        =t('Lane')
      %td
        - if($lane > 0)
          = $lane
    %tr
      %td
        =t('Gate')
      %td
        =$event->gate->Descrizione
