<?php
return array
(
    'list' => array
    (
        'field'      => array
        (
            'name',
            'score_id',
            'status' => array
            (
                'type' => 'switch',
                'show'  => '{status}',
                'active_value' => 1,
                'inactive_value' => 2,
            ),
        ),
        'button' => array
        (
            '新增' => array('fastadd'),
        ),
        'data_button' => array
        (
            '编辑' => 'fastedit',
            '等级设置' => array('route', array
            (
                'path' => 'place_user_list/role_level',
                'param' => array
                (
                    'set' => array('role_id' => 'id', 'menu' => 'place_user_list/role', 'parent' => 'place_user_list/role'),
                ),
            )),
        ),
        'search'    => array
        (
            'name',
        ),
    ),
    'update' => array
    (
        'field'    => array
        (
            'name' => array
            (
                'rules' => true,
            ),
            'score_id' => array
            (
                'rules' => true,
                'tips' => '成为该角色所需的积分',
            ),
            'icon' => array
            (
                'type' => 'upload',
                'upload' => '1',
                'multiple' => true,
                'style' => 'pic',
            ),
        ),
    ),
);