<!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" id="app">
    <form class="form-horizontal m" id="form-network-add">
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">案件编号：</label>
            <div class="col-sm-8">
                <input name="caseNo" required class="form-control" placeholder="请输入案件编号" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">人员姓名：</label>
            <div class="col-sm-8">
                <input name="name" required class="form-control" placeholder="请输入人员姓名" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label ">身份证号：</label>
            <div class="col-sm-8">
                <input name="userNo"  class="form-control" placeholder="请输入身份证号" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label ">性别：</label>
            <div class="col-sm-8">
                <select name="sex"  class="form-control m-b" th:with="type=${@dict.getType('sys_user_sex')}">
                    <option value="">---请选择---</option>
                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label ">年龄：</label>
            <div class="col-sm-8">
                <input name="age"  class="form-control" placeholder="请输入年龄" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label ">职务：</label>
            <div class="col-sm-8">
                <input name="position"  class="form-control" placeholder="请输入职务" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label ">所在单位：</label>
            <div class="col-sm-8">
                <input name="department"  class="form-control" placeholder="请输入所在单位" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label ">职级：</label>
            <div class="col-sm-8">
                <input name="rank"  class="form-control" placeholder="请输入职级" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label ">电话号码：</label>
            <div class="col-sm-8">
                <input name="phone"  class="form-control" placeholder="请输入电话号码" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label ">立案时间：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <input name="filingTime"  class="form-control" placeholder="yyyy-MM-dd" type="text">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                </div>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
    var prefix = ctx + "system/case"
    $("#form-network-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-network-add').serialize());
        }
    }
    $("input[name='filingTime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });
</script>
</body>
</html>
