%script{:type => "text/javascript",
        :src  => "../js/blackListAjaxStats.js"}

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

%table(width="100%")
  %tr
    %td
      %h2(title="#{$plateList->code}")=$plateList->name
      %h3=$plateList->title
      -if($isBlack)
        %h4=t('Black list')
      -else
        %h4=t('White list')
    %td
      %img(src="#{$imgurl}" width="200" align="right")  
  %tr
    %td(colspan="2")
      %hr
  %tr
    %td(colspan="2")
      -$this->renderPartial('plateListActions', array('plateList'=>$plateList))
  -if(user()->checkAccess('stats_plate_list'))  
    %tr
      %td(colspan="2")
        %hr
    %tr
      %td(colspan="3")
        %h3=t('Plate authorizations')
        %ul
          -foreach($stats as $name => $value)
            %li(id="#{str_replace(" ","_",$name)}")
              =$name.': '.$value

        