<!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-LineType-edit" th:object="${tBdLinetype}">
            <input name="LineID" th:field="*{LineID}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">线路名称：</label>
                <div class="col-sm-8">
                    <input name="LineTypeName" th:field="*{LineTypeName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">线路类型：</label>
                <div class="col-sm-8">
                    <select name="LineTypeFlag" th:field="*{LineTypeFlag}" th:with="type=${@dict.getType('LineType')}" class="form-control m-b">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">条码前缀：</label>
                <div class="col-sm-8">
                    <input name="BarcodeHead" th:field="*{BarcodeHead}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "nanjing/LineType";
        $("#form-LineType-edit").validate({
            focusCleanup: true
        });

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