-$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

  .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 Vehicle Details")
          %h4
            =$plateList->getListTitleComplete()
        %td
          -if(!empty($imgurl))
            %img(src="#{$imgurl}" width="100" align="right")
  .row
    #plate-autorization-container.span6
      - $this->renderPartial('authorization_details/_plateAuthorization', array('plateAuthorization' => $plateAuthorization, 'isBlack' => $isBlack))   

    #plate-authorization-vehicle.span6
      - $this->renderPartial('authorization_details/_vehicleDetails', array('vehicle' => $plateAuthorization->vehicle, 'isBlack' => $isBlack))   
  .row
    #plate-autorization-user-container.span6
      - $this->renderPartial('authorization_details/_userDetails', array('user' => $plateAuthorization->user, 'isBlack' => $isBlack))   
    #plate-authorization-validity-period.span6
      - $this->renderPartial('authorization_details/_validityPeriodDetails', array('validityPeriod' => $plateAuthorization->validityPeriod, 'isBlack' => $isBlack))   

  .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')

    #plate-authorization-actions.pull-right
      -$this->printPrintBtn($permesso, true)
      -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')
      