<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改人名职务')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-nameduty-edit" th:object="${trsNameWords}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">人名：</label>
                    <div class="col-sm-8">
                        <input name="wrongWord" th:field="*{wrongWord}" class="form-control" type="text" required>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">国家：</label>
                    <div class="col-sm-8">
                        <input name="country" th:field="*{country}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">职务全称：</label>
                    <div class="col-sm-8">
                        <input name="dutyAll" th:field="*{dutyAll}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">职务简称：</label>
                    <div class="col-sm-8">
                        <input name="dutyShort" th:field="*{dutyShort}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label ">参考依据：</label>
                    <div class="col-sm-8">
                        <input name="accord" th:field="*{accord}" class="form-control" type="text" >
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label ">来源：</label>
                    <div class="col-sm-8">
                        <input name="source" th:field="*{source}" class="form-control" type="text" >
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label ">链接：</label>
                    <div class="col-sm-8">
                        <input name="linkurl" th:field="*{linkurl}" class="form-control" type="text" >
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">顺序：</label>
                    <div class="col-sm-8">
                        <input name="sort" th:field="*{sort}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label ">生效开始时间：</label>
                    <div class="col-sm-8">
                        <input type="text"
                               th:value="${trsNameWords.effectstart != null} ? ${#dates.format(trsNameWords.effectstart, 'yyyy-MM-dd')} : ''"
                               class="time-input"
                               placeholder="yyyy-MM-dd"
                               name="effectstart"/>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label ">生效结束时间：</label>
                    <div class="col-sm-8">
                        <!-- 生效结束时间（带时间部分） -->
                        <input type="text"
                               th:value="${trsNameWords.effectend != null} ? ${#dates.format(trsNameWords.effectend, 'yyyy-MM-dd')} : ''"
                               class="time-input"
                               placeholder="yyyy-MM-dd"
                               name="effectend"/>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "project/nameduty";
        $("#form-nameduty-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-nameduty-edit').serialize());
            }
        }
    </script>
</body>
</html>