{$layout "layout_popup"}

<h3>审核</h3>
<form class="ui form" data-tea-success="success" data-tea-action="$">
    <csrf-token></csrf-token>
    <input type="hidden" name="userId" :value="userId"/>

    <table class="ui table definition selectable">
        <tr>
            <td class="title">审核结果</td>
            <td>
                <select class="ui dropdown auto-width" name="result" v-model="result">
                    <option value="pass">通过</option>
                    <option value="reject">拒绝</option>
                    <option value="delete">拒绝并删除</option>
                </select>
                <p class="comment" v-if="result == 'pass'">通过后，用户可正常创建服务。</p>
                <p class="comment" v-if="result == 'reject'">拒绝后，用户不可创建服务。</p>
                <p class="comment" v-if="result == 'delete'">将删除当前用户信息。</p>
            </td>
        </tr>
        <tr v-if="result == 'reject' || result == 'delete'">
            <td>拒绝原因</td>
            <td>
                <textarea rows="2" name="rejectReason"></textarea>
            </td>
        </tr>
    </table>

    <submit-btn></submit-btn>
</form>