<?php
return array
(
    'source' => 'tool/info',
    'list' => array
    (
        'field'      => array
        (
            'id',
            'name' => array
            (
                //'tip' => false,
            ),
            'path',
            'status' => array
            (
                'type' => 'switch',
                'show'  => '{status}',
                'active_value' => 1,
                'inactive_value' => 2,
            ),
            'cdate',
        ),
        'button' => array
        (
            '新增' => array('add'),
        ),
        'data_button' => array
        (
            '编辑' => 'edit',
        ),
        'search'    => array
        (
            'status',
            'name',
        ),
    ),
    'update' => array
    (
        'field'    => array
        (
            'name' => array
            (
                'rules' => true,
            ),
            'path' => array
            (
                'rules' => true,
            ),
            'info' => array
            (
                'type' => 'textarea',
                'rules' => true,
                'autosize' => array('minRows' => 4),
            ),
            'pic' => array
            (
                'type' => 'upload',
                'upload' => 1,
                'yun' => true,
                'multiple' => false,
                'tip' => '',
                'style' => 'pic',
            ),
        ),
    ),
);