<!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-dataType-edit" th:object="${dataType}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">数据类型名称：</label>
                <div class="col-sm-8">
                    <input name="dataTypeName" th:field="*{dataTypeName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">数据类型代码：</label>
                <div class="col-sm-8">
                    <input name="dataTypeCode" th:field="*{dataTypeCode}" class="form-control" readonly="true" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">MYSQL：</label>
                <div class="col-sm-8">
                    <input name="mysqlCode" th:field="*{mysqlCode}" class="form-control" type="text" required>
                </div>
            </div>
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">ORACLE：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="oracleCode" th:field="*{oracleCode}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">SQLServer：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="sqlserverCode" th:field="*{sqlserverCode}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">PostgreSQL：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="postgresqlCode" th:field="*{postgresqlCode}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">JAVA：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="javaCode" th:field="*{javaCode}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <textarea name="remark" class="form-control">[[*{remark}]]</textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "model/dataType";
        $("#form-dataType-edit").validate({
            focusCleanup: true
        });

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