.page-header
  %h2
    .icon-list
    = t('Results')

%h4=$list->getListTitle()
    
%br

%table.table.table-condensed
  %tr
    %th
    %th=t('Name')
    %th=t('Surname')
    %th=t('Plate')
    %th=t('Start date')
    %th=t('End date')
    %th=t('Gate')
    %th=t('Time schedule')
  -foreach($permits as $p)
    %tr
      %td
        %a(href="#{url('PlateAuthorization/view',array('id'=>$p->ID))}")
          .icon-eye-open
      %td=$p->user->Nome
      %td=$p->user->Cognome
      %td=$p->vehicle->Targa
      %td=DateHelper::ensureObjectEx($p->validityPeriod->DataInizio)
      %td=DateHelper::ensureObjectEx($p->validityPeriod->DataFine)
      %td!=SystemInfoHelper::getPlateAuthGateCoolName($p->GateID,$p->GateID_type)
      %td!=SystemInfoHelper::getTimeScheduleCoolName($p->TimeID)
      