<?php
return array
(
    'list' => array
    (
        'field'      => array
        (
            'type',
            'name',
            'info',
            'sort' => array
            (
                'type' => 'input',
                'tips' => '双击修改排序，正序排序',
            ),
            'status' => array
            (
                'type' => 'switch',
                'show'  => '{status}',
                'active_value' => 1,
                'inactive_value' => 2,
            ),
        ),
        'button' => array
        (
            '新增' => array('fastadd'),
        ),
        'data_button' => array
        (
            '编辑' => array('fastedit'),
        ),
        'search'    => array
        (
            'name',
            'type',
            'status',
        ),
    ),
    'update' => array
    (
        'field'    => array
        (
            'name' => array
            (
                'rules' => true,
            ),
            'type' => array
            (
                'rules' => true,
                'type' => 'radio',
            ),
            'info' => array
            (
                'rules' => true,
                'type' => 'textarea',
                'autosize' => array('minRows' => 4),
            ),
            'pic' => array
            (
                'type' => 'upload',
                'upload' => '1',
                'multiple' => false,
                'style' => 'pic',
            ),
        ),
    ),
);