<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增培训/活动信息')" />
    <link th:href="@{/css/use/css1.css}" rel="stylesheet"/>
    <link th:href="@{/ruoyi/css/address.css}" rel="stylesheet"/>
    <th:block th:include="include :: bootstrap-duallistbox-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<!--    <ul class="nav head_top" id="tab">-->
<!--        <div class="text-right hidden-print" style="float: right">-->
<!--            <button class="btn btn-unite" onclick="submitHandler()">保存</button>-->
<!--        </div>-->
<!--    </ul>-->
    <form class="form-group-add" id="form-group-add">
        <div class="form-group" style="margin-left:48px;margin-top: 20px">
            <label class="col-sm-4 control-label is-required" style="float: left">组名称 :</label>
            <div class="col-sm-8" style="float: left">
                <input id="groupName" name="groupName" class="form-control addgroup_frame"  placeholder="请填写组名称" >
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
    var prefix = ctx + "system/addressbook";


    $("#form-group-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        let gn=$('#groupName').val();
        if (gn == '') {
            $.modal.alertWarning("请填写组名称再提交！");
            return;
        }else {
            $.operate.save(prefix + "/addgroup/add", $('#form-group-add').serialize());
        }
    }
</script>
</body>
</html>