<!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" th:object="${case}">
        <input name="id" type="hidden" th:field="*{id}" />
        <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" type="text" readonly="readonly" th:field="*{caseNo}">
            </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" type="text" th:field="*{name}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">身份证号：</label>
            <div class="col-sm-8">
                <input name="userNo" required class="form-control" type="text" th:field="*{userNo}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">性别：</label>
            <div class="col-sm-8">
                <select name="sex" required 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}" th:field="*{sex}"></option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">年龄：</label>
            <div class="col-sm-8">
                <input name="age" required class="form-control" type="text" th:field="*{age}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">职务：</label>
            <div class="col-sm-8">
                <input name="position" required class="form-control" type="text" th:field="*{position}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">所在单位：</label>
            <div class="col-sm-8">
                <input name="department" required class="form-control" type="text" th:field="*{department}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">职级：</label>
            <div class="col-sm-8">
                <input name="rank" required class="form-control" type="text" th:field="*{rank}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">电话号码：</label>
            <div class="col-sm-8">
                <input name="phone" required class="form-control" type="text" th:field="*{phone}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">立案时间：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <input name="filingTime" required class="form-control" th:field="*{filingTime}" 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 + "/edit", $('#form-network-add').serialize());
        }
    }
    $("input[name='filingTime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });
</script>
</body>
</html>
