-$plateList = $plateAuthorization->plate_list
- $isBlack = $plateList->mode == PlateList::MODE_BLACK_LIST
- if($isBlack)
  - $imgurl = $plateList->getImageUrl('/images/list_black.png')
- else
  - $imgurl = $plateList->getImageUrl('/images/list_white.png')
- $permesso = $plateAuthorization->permesso

#plate-autorization-details
  #plate-autorization-summary
    .page-header
      %table(width="100%")
        %tr
          %td
            %h2
              -if($plateAuthorization->authorizationAccessType == PlateAuthorization::TYPE_WHITELIST)
                %i.icon-file-text-alt
                = Yii::t("app", "Authorization Details")
              -else if($plateAuthorization->authorizationAccessType == PlateAuthorization::TYPE_BLACKLIST)
                %i.icon-file-text
                = Yii::t("app", "Blacklist Details")
            %h4
              =$plateList->getListTitleComplete()
          %td
            -if(!empty($imgurl))
              %img(src="#{$imgurl}" width="100" align="right")
    .left-column.span6
      #plate-autorization-container
        - $this->renderPartial('authorization_details/_plateAuthorization', array('plateAuthorization' => $plateAuthorization))   

      #plate-autorization-action-container
        - $this->renderPartial('authorization_details/_plateAuthorizationActionsDetails', array('plateAuthorization' => $plateAuthorization))   



      #plate-authorization-validity-period
        - $this->renderPartial('authorization_details/_validityPeriodDetails', array('validityPeriod' => $plateAuthorization->validityPeriod))   

    .right-column.span5
      #plate-authorization-vehicle
        - $this->renderPartial('authorization_details/_vehicleDetails', array('vehicle' => $plateAuthorization->vehicle))   

      #plate-autorization-user-container
        - $this->renderPartial('authorization_details/_userDetails', array('user' => $plateAuthorization->user))   


  .row
    - if(!$isBlack)
      -if(user()->checkAccess('plate_auth_insert_wizard') && (paramdeep('plateAuthorizations','viewGoToWizardLink') || isset($_REQUEST["fromWizard"])))
        #plate-authorization-view-in-wizard.span6
          - $viewWizard = Yii::app()->createAbsoluteUrl('plateAuthorization/whiteListWizard',array('plateListId'=>$plateAuthorization->list_code, 'step'=>"4", 'ownerId'=>$plateAuthorization->user->ID, 'vehicleId'=>$plateAuthorization->vehicle->ID, 'validityPeriodId'=>$plateAuthorization->validityPeriod->ID))
          %a(href="#{$viewWizard}")
            =t('View in wizard')

  .row
    #plate-authorization-actions.pull-right

      .btn.btn-small(data-behavior="PrintButton" data-id-div-to-print='#plate-autorization-summary')
        %i.icon-print
          =t('Print')
    
      -$this->printPrintBtn($permesso, true)

      -if(Yii::app()->user->checkAccess('plate_auth_export'))
        %a.btn.btn-small(href="#{url('plateAuthorization/PlateAuthInfoExport',array('id'=>$plateAuthorization->ID,'type'=>'PLATE_AUTHORIZATION'))}" title="#{t('Export')}")
          %i.icon-download
          =t('Export')
          
      -if(Yii::app()->user->checkAccess('plate_auth_delete'))
        %a.btn.btn-small(href="#{$permesso->url_delete}" title="#{t('Delete')}" onclick="return confirm('#{t('Are you sure you want to delete this item?')}')")
          %i.icon-trash
            =t('Delete')

      