<?php

$this->widget('ext.PlGrid.PlGridView', array(
    'id' => 'callgroup-grid',
    'dataProvider' => $dataProvider,
    'showNavbar' => false,
    'selectableRows' => 3,
    'type' => 'striped bordered condensed',
    'itemsCssClass' => 'plTable items table-fixed',
    'columns' => array(
        array(
            'name' => 'name',
            'header' => __('MYPHONES_INDEX_CALLGROUP_NAME'),
            'headerHtmlOptions' => array('data-translation-id' => 'MYPHONES_INDEX_QUEUE_NAME'),
        ),
        array(
            'name' => 'logggedIn',
            'header' => __('MYPHONES_INDEX_QUEUE_LOGIN_LOGOUT'),
            'headerHtmlOptions' => array('data-translation-id' => 'MYPHONES_INDEX_QUEUE_LOGIN_LOGOUT'),
            'value' => array($this, 'renderCallGroupStatus'),
        ),
        array(
            'name' => 'description',
            'header' => __('MYPHONES_INDEX_CALLGROUP_DESCR'),
            'headerHtmlOptions' => array('data-translation-id' => 'MYPHONES_INDEX_CALLGROUP_DESCR'),
        ),
    ),
        )
);
