{$layout "layout_popup"}

<!-- <h3>修改调度动作</h3> -->

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

    <table class="ui table definition selectable">
        <tr>
            <td class="title">执行条件 *</td>
            <td>
                <node-schedule-conds-box :v-params="params" :v-operators="operators" v-model="action.conds" @changeparam="changeParam"></node-schedule-conds-box>
            </td>
        </tr>
        <tr>
            <td>执行动作 *</td>
            <td>
                <node-schedule-action-box :v-actions="actions" v-model="action.action"></node-schedule-action-box>
            </td>
        </tr>
        <tr v-show="param != null && param.hasDuration">
            <td>持续时间 *</td>
            <td>
                <div class="ui input right labeled">
                    <input type="text" maxlength="3" style="width: 4em" value="60" name="durationMinutes" v-model="action.durationMinutes"/>
                    <span class="ui label">分钟</span>
                </div>
                <p class="comment">表示当前动作执行后多久自动还原为原始状态。</p>
            </td>
        </tr>
        <tr>
            <td>启用当前动作</td>
            <td><checkbox :v-value="1" name="isOn" v-model="action.isOn"></checkbox></td>
        </tr>
    </table>

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