{{define "component/rule"}}
<div class="ui tiny rule modal transition hidden">
    <div class="header">添加通知规则</div>
    <div class="content">
        <form id="ruleForm" class="ui form">
            <input type="hidden" name="ID">
            <div class="field">
                <label>备注</label>
                <input type="text" name="Name">
            </div>
            <div class="secret field">
                <label>规则</label>
                <textarea name="RulesRaw"></textarea>
            </div>
            <div class="field">
                <div class="ui rule-enable checkbox">
                    <input name="Enable" type="checkbox" tabindex="0" class="hidden">
                    <label>启用</label>
                </div>
            </div>
        </form>
    </div>
    <div class="actions">
        <div class="ui negative button">取消</div>
        <button class="ui positive right labeled icon button">确认<i class="checkmark icon"></i>
        </button>
    </div>
</div>
{{end}}