
%tr
  %td.license-plate
    .licence-plate-box
      - if($event->nationalityCode != '')
        - $this->renderPartial('/shared/_countryFlag', array('isoCode' => $event->nationalityCode))
      - else
        %img(width="16px")
      = $event->Plate
  %td.license-plate    
    .licence-plate-box
      = $event->ExtPlate
  %td.plate-layout    
    = $event->Nationality
  %td(title="#{$event->Gate}")
    -$gt = $event->gate
    -if($gt != null)
      -if(empty($gt->short_name))
        =$gt->Descrizione
      -else
        =$gt->short_name
    -else
      =$event->GateDescription
  %td
    =DateHelper::ensureObjectEx($event->StartTime)
  %td
    =$event->Velocita
  %td
    %img.vehicle-class-icon-small(src="#{Yii::app()->baseUrl}/images/vehicle-classes/#{$event->VehicleClassIcon}")
  %td
    -if(user()->checkAccess('media_view_photo'))
      - $photoBN = $event->previewPhotoUrl
      - if(!empty($photoBN))
        %a(title="#{t('Black/White photo')}" href="#{$photoBN}" data-lightbox="violation-preview-#{$event->ID}")
          %i.icon-zoom-in               
      - $photoCOL = $event->previewColorPhotoUrl
      - if(!empty($photoCOL))
        %a(title="#{t('Color photo')}" href="#{$photoCOL}" data-lightbox="violation-preview-#{$event->ID}")
          %i.icon-zoom-in    
  %td       
    %button.export-images.btn.btn-mini(type="button" data-event-id="#{$event->ID}" data-event-export-time="#{$exportTime}" data-confirm-text="#{t('Confirm?')}")
      = t('Export')