<!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-ProductType-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">机种id：</label>
                <div class="col-sm-8">
                    <input name="ProductTypeID" class="form-control" th:each="pt:${pt}" th:value="${pt.ProductTypeID}" readonly="readonly">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">机种名称：</label>
                <div class="col-sm-8">
                    <input name="ProductTypeName" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "nanjing/ProductType"
        $("#form-ProductType-add").validate({
            focusCleanup: true
        });

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