<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增【请填写功能名称】')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-statistics-add">
            <div class="form-group">
                <label class="col-sm-2 control-label">区域：<span style="font-size:20px;color:red">&nbsp;*</span></label>
                <div class="col-sm-4">
                    <select name="areaname"  class="form-control required">
                        <option value="">请选择</option>
                        <option value="自贸区">自贸区</option>
                        <option value="正定新区">正定新区</option>
                        <option value="正定镇">正定镇</option>
                        <option value="新安镇">新安镇</option>
                        <option value="新城铺镇">新城铺镇</option>
                        <option value="南楼乡">南楼乡</option>
                        <option value="西平乐乡">西平乐乡</option>
                        <option value="北早现乡">北早现乡</option>
                        <option value="南牛乡">南牛乡</option>
                        <option value="曲阳桥乡 ">曲阳桥乡 </option>
                    </select>
                </div>

            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">企业数量：</label>
                <div class="col-sm-4">
                    <input id="number" name="number" autocomplete="off" class="form-control" type="text"
                           required   oninput="value=value.replace(/[^\d]/g,'')"
                    >
                </div>
                <label class="col-sm-2 control-label">个体数量：</label>
                <div class="col-sm-4">
                    <input id="quantity" name="quantity" autocomplete="off" class="form-control " type="text"
                           required  oninput="value=value.replace(/[^\d]/g,'')"
                    >
                </div>

            </div>

            <div class="row">
                <div class="col-sm-12" style="text-align:center">
                    <button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i
                            class="fa fa-check"></i>保 存
                    </button>&nbsp;
                    <button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i
                            class="fa fa-reply-all"></i>关 闭
                    </button>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "system/statistics"
        $("#form-statistics-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.saveTab(prefix + "/add", $('#form-statistics-add').serialize());
            }
        }

        $("input[name='addtime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>