<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
    <head>
        <script th:replace="common/head"></script>
    </head>
    <body>
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-card">
                    <div class="layui-card-body">
                        <div class="layui-form">
                            <!-- 服务器名称 -->
                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    <span class="must">*</span>
                                    <span>名称</span>
                                </label>
                                <div class="layui-input-inline">
                                    <input type="text" name="name" lay-verify="required" autocomplete="off" class="layui-input" />
                                </div>
                            </div>
                            <!-- 主机地址 -->
                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    <span class="must">*</span>
                                    <span>主机地址</span>
                                </label>
                                <div class="layui-input-inline">
                                    <input type="text" name="host" autocomplete="off" class="layui-input" />
                                </div>
                            </div>
                            <!-- 端口号 -->
                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    <span class="must">*</span>
                                    <span>端口号</span>
                                </label>
                                <div class="layui-input-inline">
                                    <input type="text" name="port" lay-verify="number" autocomplete="off" class="layui-input" />
                                </div>
                            </div>
                            <!-- 数据库名称 -->
                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    <span class="must">*</span>
                                    <span>数据库</span>
                                </label>
                                <div class="layui-input-inline">
                                    <input type="text" name="virtual" lay-verify="required" autocomplete="off" class="layui-input" />
                                </div>
                            </div>
                            <!-- 用户名 -->
                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    <span class="must">*</span>
                                    <span>用户名</span>
                                </label>
                                <div class="layui-input-inline">
                                    <input type="text" name="user" lay-verify="required" autocomplete="off" class="layui-input" />
                                </div>
                            </div>
                            <!-- 密码 -->
                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    <span class="must">*</span>
                                    <span>密码</span>
                                </label>
                                <div class="layui-input-inline">
                                    <input type="password" name="password" lay-verify="required" autocomplete="off" class="layui-input" />
                                </div>
                            </div>
                            <!-- 连接数 -->
                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    <span class="must">*</span>
                                    <span>连接数</span>
                                </label>
                                <div class="layui-input-inline">
                                    <input type="text" name="maxConnections" lay-verify="number" autocomplete="off" class="layui-input" />
                                </div>
                            </div>
                            <!-- 本地主机地址 -->
                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    <span>本地主机地址</span>
                                </label>
                                <div class="layui-input-inline">
                                    <input type="text" name="localhost" autocomplete="off" class="layui-input" />
                                </div>
                            </div>
                            <!-- 本地端口号 -->
                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    <span class="must">*</span>
                                    <span>本地端口号</span>
                                </label>
                                <div class="layui-input-inline">
                                    <input type="text" name="localPort" lay-verify="number" autocomplete="off" class="layui-input" />
                                </div>
                            </div>
                            <!-- 按钮 -->
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <button class="layui-btn" lay-submit lay-filter="entity_submit_event">提交</button>
                                    <button class="layui-btn layui-btn-primary" type="reset" lay-filter="entity_submit_event">取消</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </body>
    <!-- javascript -->
    <script type="text/javascript" th:src="@{'/layui/layui.js'}" charset="utf-8"></script>
    <script type="text/javascript">
        layui.config({
            base: '/' //静态资源所在路径
        });
    </script>
    <script type="text/javascript" th:src="@{'/js/device/mq-add.js'}" charset="utf-8"></script>
</html>
