<?php
return array
(
    'source' => 'source/account',
    'list' => array
    (
        'field'      => array
        (
            'id',
            'name',
            'site',
            'type',
            'status' => array
            (
                'type' => 'switch',
                'show'  => '{status}',
                'active_value' => 1,
                'inactive_value' => 2,
            ),
            'cdate',
        ),
        'button' => array
        (
            '新增' => array('add'),
        ),
        'data_button' => array
        (
            '编辑' => 'edit',
        ),
        'search'    => array
        (
            'name',
            'status',
        ),
    ),
    'update' => array
    (
        'field'    => array
        (
            'name',
            'site',
            'type' => array
            (
                'rules' => true,
            ),
            'cookie' => array
            (
                'type' => 'textarea',
                'rules' => true,
                'autosize' => array('minRows' => 10),
            ),
        ),
    ),
);