{$layout}
{$template "user_menu"}

<div class="margin"></div>

<form class="ui form" data-tea-success="success" data-tea-action="$">
    <csrf-token></csrf-token>
    <input type="hidden" name="userId" :value="user.id"/>

    <table class="ui table definition selectable">
        <tr>
            <td class="title">功能列表</td>
            <td>
                <div class="feature-boxes">
                    <div class="feature-box" v-for="feature in features">
                        <checkbox name="codes" :v-value="feature.code" v-model="feature.isChecked">{{feature.name}}</checkbox>
                        <p class="comment">{{feature.description}}</p>
                    </div>
                </div>
            </td>
        </tr>
    </table>
    <submit-btn></submit-btn>
</form>