<!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-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">线路名称：</label>
                <div class="col-sm-8">
                    <input name="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: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" 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-add").validate({
            focusCleanup: true
        });

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