{$layout "layout_popup"}

<h3>修改线路</h3>
<form class="ui form" data-tea-action="$" data-tea-success="success">
    <csrf-token></csrf-token>
    <input type="hidden" name="routeId" :value="route.id"/>
    <table class="ui table definition selectable">
        <tr>
            <td class="title">线路名称 *</td>
            <td>
                <input type="text" name="name" maxlength="100" ref="focus" v-model="route.name"/>
            </td>
        </tr>
        <tr>
            <td>IP范围</td>
            <td>
                <ns-route-ranges-box :v-ranges="route.ranges"></ns-route-ranges-box>
            </td>
        </tr>
        <tr>
            <td colspan="2"><more-options-indicator></more-options-indicator></td>
        </tr>
        <tbody v-show="moreOptionsVisible">
            <tr>
                <td>是否启用</td>
                <td>
                    <checkbox name="isOn" value="1" v-model="route.isOn"></checkbox>
                </td>
            </tr>
        </tbody>
    </table>

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