<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <script th:replace="common/head"></script>
    <style>
        .layui-input-block {
            position: relative;
        }
        .word {
            position: absolute;
            right: 10px;
            bottom: 10px;
            color: #aaa;
            font-size: 12px;
            line-height: 0px;
        }
    </style>
</head>

<body>
   
  
    <div class="layui-row">
        <div class="layui-col-md12">
            <div class="layui-card">

                <div class="layui-card-body" style="padding-left:0;">

                    <div class="layui-form" lay-filter="">
                        <div class="layui-form-item">
                            <label class="layui-form-label"><span class="must">*</span>类别名称</label>
                            <div class="layui-input-block">
                                <input type="text" id="name" name="name" lay-verify="required|checkName" placeholder="" autocomplete="off"
                                    class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item layui-form-text">
                            <label class="layui-form-label">备注</label>
                            <div class="layui-input-block">
                                <textarea id="remark" name="remark" lay-verify="remark" placeholder="请输入200字以内的作品介绍" class="layui-textarea"
                                          oninput="wordLeg(this);" maxlength="200" onpropertychange="if(value.length>200) value=value.substr(0,200)"></textarea>
                                <div class="word"><span class="text_count">0</span>&nbsp;/&nbsp;<span class="num_count" id="numCount">200</span></div>
                            </div>
                        </div>
                        <input type="hidden" id="id" name="id">
                        <div class="layui-layer-btn layui-layer-btn-">
                            <a class="layui-layer-btn0" lay-filter="addConfirm" lay-submit>确认</a>
                            <a class="layui-layer-btn1">取消</a>
                        </div>
                    </div>

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

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

</body>

</html>