<?php
return array
(
    'source' => 'api/site',
    'list' => array
    (
        'field'      => array
        (
            'id',
            'name' => array
            (
                //'tip' => false,
            ),
            'key',
            'sort' => array
            (
                'type' => 'input',
            ),
            '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,
            ),
            'key' => array
            (
                'rules' => true,
            ),
        ),
    ),
);