- $types = paramdeep('plateAuthorizations','types') 

%h3
  - if($isBlack)
    = t('Blacklist reporting')
  - else    
    = t('Plate authorization')
  = '#'
  = $plateAuthorization->ID  
  
%table.table.table-striped.table-condensed
  %thead
    %tr
      %th
      %th
  %tbody
    %tr
      %td
        =$plateAuthorization->getAttributeLabel('Descrizione')
      %td
        =$plateAuthorization->Descrizione
    - if(!$isBlack)
      %tr
        %td
          =$plateAuthorization->getAttributeLabel('type')
        %td
          =array_key_exists($plateAuthorization->type, $types) ? $types[$plateAuthorization->type] : $plateAuthorization->type
    %tr
      %td
        =$plateAuthorization->getAttributeLabel('GateID')
      %td
        !=SystemInfoHelper::getPlateAuthGateCoolName($plateAuthorization->GateID,$plateAuthorization->GateID_type)
    %tr
      %td
        =t('Time slot')
      %td
        !=SystemInfoHelper::getTimeScheduleCoolName($plateAuthorization->TimeID)
    %tr
      %td
        =t('List')
      %td
        =$plateAuthorization->plate_list->name 
        =' - '   
        =$plateAuthorization->plate_list->title
    %tr
      %td
        - if($isBlack)
          = t('Active reporting')
        - else    
          = t('Valid')        
      %td
        - if($plateAuthorization->enabled)
          = t('Yes')
        - else
          = t('No')
    - if(!$isBlack)          
      %tr
        %td
          =t('Request code')
        %td
          =$plateAuthorization->request_code
      %tr
        %td
          =t('Authorization code')
        %td
          =$plateAuthorization->authorization_code        
      %tr
        %td
          =t('Path')
        %td
          =$plateAuthorization->path  
      %tr
        %td
          =$plateAuthorization->getAttributeLabel('action')
        %td
          =$plateAuthorization->action
    %tr
      %td
        =$plateAuthorization->getAttributeLabel('Note')
      %td
        =$plateAuthorization->Note


        