<!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-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <!-- 添加 -->
                    <div class="layui-form">
                        <!-- 广告标题/广告编号 -->
                        <div id="parent_entity" class="layui-form-item layui-form">
                            <label class="layui-form-label">
                                <span class="must">*</span>
                                <span>关联广告:</span>
                            </label>
                            <!--点击关联广告-->
                            <button class="layui-btn layuiadmin-btn-admin"
                                    id="relevance_btn">
                                <i class="layui-icon layuiadmin-button-btn"></i>
                                <span>关联(<span style="color: red" id="relative_ad_count">0</span>)</span>
                            </button>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">
                                <span class="must">*</span>
                                <span>广告排序:</span>
                            </label>
                            <div class="layui-input-inline">
                                <input type="number" id="sort" name="sort" autocomplete="off" class="layui-input">
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <input type="hidden" id="taskDeviceToken">
                                <button class="layui-btn" lay-submit lay-filter="addConfirm">提交</button>
                                <button type="reset" class="layui-btn layui-btn-primary">取消</button>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>

<!-- javascript -->
<script type="text/javascript" th:src="@{'/layui/layui.js'}"></script>
<script type="text/javascript">
    layui.config({
        base: '/' //静态资源所在路径
    });
    //选中的广告类容map
    var table_ad_checkbox_map = new Map();
</script>
<script type="text/javascript" th:src="@{'/js/ad/ad-push-app-add.js'}" charset="utf-8"></script>
</html>