<?php
return array
(
    'source' => 'source/info',
    'list' => array
    (
        'field'      => array
        (
            'sort' => array
            (
                'type' => 'input',
            ),
            'name' => array
            (
                //'tip' => false,
            ),
            'cate_id',
            'times_id',
            'status' => array
            (
                'type' => 'switch',
                'show'  => '{status}',
                'active_value' => 1,
                'inactive_value' => 2,
            ),
            'cdate',
        ),
        'button' => array
        (
            '新增' => array('add'),
        ),
        'data_button' => array
        (
            '编辑' => 'edit',
            '推广素材' => array('route', array
            (
                'path' => 'set_zone_source/source_info_data',
                'param' => array
                (
                    'set' => array('info_id' => 'id', 'menu' => 'set_zone_source/source_info', 'parent' => 'set_zone_source/source_info'),
                ),
            ), 'ChatLineSquare'),
        ),
        'search'    => array
        (
            'cate_id',
            'times_id',
            'status',
            'name',
        ),
    ),
    'update' => array
    (
        'tab' => array
        (
            '基本信息' => 'name,cate_id,times_id,content',
            '附件信息' => 'source/info_value',
        ),
        //'desc' => '原创声明：',
        'field'    => array
        (
            'name' => array
            (
                'rules' => true,
            ),
            'cate_id' => array
            (
                'rules' => true,
            ),
            'times_id' => array
            (
                'rules' => true,
            ),
            /*
            'info' => array
            (
                'type' => 'textarea',
                //'rows' => 4,
                'autosize' => array('minRows' => 4),
            ),*/
            'content' => array
            (
                'rules' => true,
                'type' => 'editor',
                'editorMenu' => array
                (
                    'uploadImage' => 1,
                    'uploadVideo' => 3,
                ),
            ),
            'source/info_value' => array
            (
                'name' => '附件',
                'desc' => '如果需要抓取网络资源，直接在"文件"中填写网络资源的链接即可<br />点击保存后，系统将会自动抓取网络资源',
                'where'  => array('info_id' => 'id'),
            ),
        ),
        'end' => 'source/info.update',
    ),
);