Вход Регистрация
Файл: system/controllers/admin/grids/grid_ctype_datasets.php
Строк: 34
<?php

function grid_ctype_datasets($controller$drag_save_url$edit_url){

    
$options = array(
        
'is_sortable'   => false,
        
'is_filter'     => false,
        
'is_pagination' => false,
        
'is_draggable'  => true,
        
'drag_save_url' => $drag_save_url,
        
'order_by'      => 'ordering',
        
'order_to'      => 'asc',
        
'show_id'       => false
    
);

    
$columns = array(
        
'id' => array(
            
'title' => 'id',
            
'width' => 30
        
),
        
'title' => array(
            
'title'    => LANG_CP_DATASET_TITLE,
            
'href'     => $edit_url,
            
'editable' => array(
                
'table' => 'content_datasets'
            
)
        ),
        
'max_count' => array(
            
'title'   => LANG_LIST_LIMIT,
            
'class' => 'd-none d-lg-table-cell',
            
'width'   => 130,
            
'handler' => function($value$row) {
                return 
$value $value '&mdash;';
            }
        ),
        
'name' => array(
            
'title' => LANG_SYSTEM_NAME,
            
'class' => 'd-none d-lg-table-cell',
            
'width' => 150
        
),
        
'is_visible' => array(
            
'title'       => LANG_PUBLICATION,
            
'flag'        => true,
            
'flag_toggle' => href_to($controller->name'ctypes', array('datasets_toggle''{id}')),
            
'width'       => 90
        
)
    );

    
$actions = array(
        array(
            
'title' => LANG_EDIT,
            
'class' => 'edit',
            
'href'  => $edit_url
        
),
        array(
            
'title'   => LANG_DELETE,
            
'class'   => 'delete',
            
'href'    => href_to($controller->name'ctypes', array('datasets_delete''{id}')),
            
'confirm' => LANG_CP_DATASET_DELETE_CONFIRM
        
)
    );

    return array(
        
'options' => $options,
        
'columns' => $columns,
        
'actions' => $actions
    
);

}
Онлайн: 0
Реклама