<!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-edit" th:object="${tBdProducttype}">
            <input name="ID" th:field="*{ID}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">机种id：</label>
                <div class="col-sm-8">
                    <input name="ProductTypeID" th:field="*{ProductTypeID}" class="form-control" readonly="readonly">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">机种名称：</label>
                <div class="col-sm-8">
                    <input name="ProductTypeName" th:field="*{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-edit").validate({
            focusCleanup: true
        });

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