<!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-base_area_user-edit" th:object="${baseAreaUser}">
            <input name="objid" th:field="*{objid}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">账号名称：</label>
                <div class="col-sm-8">
                    <select name="userId" class="form-control m-b" th:with="type=${@baseAreaUserServiceImpl.selectSysUser()}">
                        <option th:each="dict : ${type}" th:text="${dict.userName}" th:value="${dict.loginName}" th:field="*{userId}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">区域id：</label>
                <div class="col-sm-8">
                    <select name="areaId" class="form-control m-b" th:with="type=${@storeService.selectArea()}">
                        <option th:each="dict : ${type}" th:text="${dict.storeName}" th:value="${dict.storeId}" th:field="*{areaId}"></option>
                    </select>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "manage/base_area_user";
        $("#form-base_area_user-edit").validate({
            focusCleanup: true
        });

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