<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
    <head>
        <script th:replace="common/head"></script>
    </head>
    <body>
        <div class="layui-fluid">
            <div class="layui-form">
                <div class="layui-form-item">
                    <label class="layui-form-label">省份</label>
                    <div class="layui-input-block">
                        <input type="text" disabled class="layui-input" th:value="${config.region}" />
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">阈值</label>
                    <div class="layui-input-block">
                        <input type="text" name="value"
                               oninput = "value=value.replace(/[^\d]/g,'')"
                               th:value="${config.value}"
                               placeholder="请输入"
                               autocomplete="off"
                               class="layui-input" />
                    </div>
                </div>
                <input type="hidden" name="id" th:value="${config.id}" />
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="entity_submit_event">提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">取消</button>
                    </div>
                </div>

            </div>
        </div>
        <!-- javascript -->
        <script type="text/javascript" th:src="@{'/layui/layui.js'}"></script>
        <script type="text/javascript">
            layui.config({
                base: '/' //静态资源所在路径
            });
        </script>
        <script type="text/javascript" th:src="@{'/js/ad/threshold-edit.js'}"></script>
    </body>
</html>