<!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-add">
            <input type="hidden" id="projectId" name="projectId" th:value="${modelProject.id}">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">数据类型名称：</label>
                <div class="col-sm-8">
                    <input name="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" class="form-control" 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" 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" 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" 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" 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" 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" ></textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "model/dataType"
        $("#form-dataType-add").validate({
            focusCleanup: true
        });

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