-if((Yii::app()->user->checkAccess("plate_list_management") ||Yii::app()->user->checkAccess("plate_list_view") )&& Yii::app()->user->checkAccess("can_see_vehicles_list"))
  -$countryList = CountryList::localized()
  %h3
    = t('Vehicles')
  
  - $this->widget('bootstrap.widgets.TbGridView',array(                             |
    'id'=>'plate-list-grid',                                                        |
    'enableSorting' => false,                                                           |
    'ajaxUpdate'=>true,                                                                     |
    'htmlOptions'=>array('style'=>'cursor: pointer;'),                                            |
    'dataProvider'=>$plateAuthorizations->cercaPerLista(),                          |
    'filter'=>$plateAuthorizations,                                                 |
    'columns'=>array(                                                               |
      array(                                                                        |
      'htmlOptions' => array('style'=>'width: 50px;'),                          |
      'name' => 'Nationality',                                                            |
      'value' => 'ctrl()->printCountryFlag($data->Nationality) ? $data->Nationality : ""',                                                    |
      'type'=>'html', |
      ),                                                                            |
      array(                                                                        |
      'name' => 'Targa',                                                            |
      'cssClassExpression' => '$data->plateAuthsCount>0 ? "okplate" : "warningplate"',                     |
      'value' => '$data->Targa',                                                    |
      ),                                                                            |
      array(                                                                        |
      'name' => 'listName',                                                         |
      'value' => '$data->listName',                                                 |
      'filter' => CHtml::listData(PlateList::getCurrentUserLists(), 'name', 'name')        |
      ),                                                                            |
      array(                                                                        |
        'htmlOptions' => array('class'=>'low-level-info'),                          |
        'name'  => t('Class'),                                                      |
        'value' => ' t("$data->Classe")',                                                 |
        'filter' => false,                                                          |
      ),                                                                            |
      array(                                                                        |
        'htmlOptions' => array('class'=>'low-level-info'),                          |
        'header'  => t('Category'),                                                   |
        'value' => '$data->category',                                               |
        'filter' => false,                                                          |
      ),                                                                            |
      array(                                                                        |
        'htmlOptions' => array('class'=>'low-level-info'),                          |
        'header'  => t('Source'),                                                     |
        'value' => '$data->source',                                                 |
        'filter' => false,                                                          |
      ),                                                                            |
       array(                                                                       |
          'class'=>'bootstrap.widgets.TbButtonColumn',                                  |
          'buttons'=>array(                                                         |
            'view'=>array(                                                          |
              'imageUrl'=>'aaa',                                                    |
              'visible'=> '$data->plateAuthsCount>0',                                    |
              'url'=>function($data, $row)  {                      |
                return Yii::app()->createUrl("PlateAuthorization/viewByVehicle", array('id' => $data->ID)); |
              },                                                                    |
                'options'=>array('target'=>'_blank'),                               |
              ),                                                                    |
            'delete'=>array(                                                        |
              'imageUrl'=>'aaa',                                                    |
              'visible'=> '$data->isListEditable() && user()->checkAccess("plate_auth_delete")',                                    |
              'url'=>function($data, $row)  {                                       |
                return Yii::app()->createUrl("PlateAuthorization/deleteByVehicle", array('id' => $data->ID)); |
              }                                                                    |
              ),                                                                    |
            'update'=>array('visible'=>'false'),                                    |
          ),                                                                        |
        ),                                                                          |
    ),                                                                              |
    ));                                                                             |