<?php
return array
(
    'source' => 'source/info',
    'list' => array
    (
        'field'      => array
        (
            'id',
            'name' => array
            (
                //'tip' => false,
            ),
            'times_id',
            'type',
            'status' => array
            (
                'type' => 'switch',
                'show'  => '{status}',
                'active_value' => 1,
                'inactive_value' => 2,
            ),
            'cdate',
        ),
        'button' => array
        (
            '新增' => array('add'),
        ),
        'data_button' => array
        (
            '编辑' => 'edit',
        ),
        'search'    => array
        (
            'times_id',
            'type',
            'status',
            'name',
        ),
    ),
    'update' => array
    (
        'field'    => array
        (
            'name' => array
            (
                'rules' => true,
            ),
            'times_id' => array
            (
                'rules' => true,
            ),
            'type' => array
            (
                'type' => 'select',
                'rules' => true,
            ),
            'publish' => array
            (
                'type' => 'radio',
                '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_file' => array
            (
                'name' => '附件',
                'where'  => array('info_id' => 'id'),
            ),
        ),
    ),
);