<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>

    <title>修改用户</title>

    <!-- 页面meta -->
    <th:block th:replace="/backstage/common_resources::common_meta"></th:block>

    <!-- 引入需要的CSS -->
    <th:block th:replace="/backstage/common_resources::common_css"></th:block>

    <!-- 要用的CSS  /-->
    <th:block th:replace="/backstage/common_resources::common_js"></th:block>

</head>

<body class="hold-transition skin-purple sidebar-mini">

    <!-- 引入页面的头部  -->
    <header th:replace="~{/backstage/common_header::header}"></header>
    <!-- 引入页面的导航侧栏 -->
    <aside th:replace="/backstage/common_aside::aside"></aside>

    <div class="wrapper">

        <!-- 内容区域 -->
        <!-- @@master = admin-layout.html-->
        <!-- @@block = content -->

        <div class="content-wrapper">

            <!-- 内容头部 -->
            <section class="content-header">
                <h1>
                    用户管理
                    <small>修改用户</small>
                </h1>
                <ol class="breadcrumb">
                    <li><a href="@{/backstage/index}"><i class="fa fa-dashboard"></i> 首页</a></li>
                    <li><a href="@{/backstage/admin/all}">用户管理</a></li>
                    <li class="active">修改用户</li>
                </ol>
            </section>
            <!-- 内容头部 /-->

            <!-- 正文区域 -->
            <section class="content">

                <form th:action="@{/backstage/admin/update}" method="post">
                    <input type="hidden" th:value="${admin.aid}" name="aid"/>
                    <!--基础控件-->
                        <div class="row data-type">

                            <div class="col-md-2 title">用户名</div>
                            <div class="col-md-4 data">
                                <input type="text" class="form-control" placeholder="用户名" name="username" th:value="${admin.username}">
                            </div>

                            <div class="col-md-2 title">密码</div>
                            <div class="col-md-4 data">
                                <input type="password" class="form-control" placeholder="密码" name="password" th:value="${admin.password}">
                            </div>

                            <div class="col-md-2 title">邮箱</div>
                            <div class="col-md-4 data">
                                <input type="email" class="form-control" placeholder="邮箱" name="email" th:value="${admin.email}">
                            </div>

                            <div class="col-md-2 title">联系电话</div>
                            <div class="col-md-4 data">
                                <input type="text" class="form-control" placeholder="联系电话" name="phoneNum" th:value="${admin.phoneNum}">
                            </div>

                            <div class="col-md-2 title">用户状态</div>
                            <div class="col-md-4 data">
                                <select class="form-control" name="status">
                                    <option value="true">开启</option>
                                    <option value="false">关闭</option>
                                </select>
                            </div>

                            <div class="col-md-2 title"></div>
                            <div class="col-md-10 data text-center">
                                <button type="submit" class="btn bg-maroon">保存</button>
                                <button type="button" class="btn bg-default" onclick="history.back(-1);">返回</button>
                            </div>

                        </div>
                    <!--基础控件/-->
                </form>

            </section>
            <!-- 正文区域 /-->

        </div>

        <!-- @@close -->
        <!-- 内容区域 /-->

    </div>

    <!-- 引入页面的底部导航 -->
    <footer th:replace="/backstage/common_footer::footer"></footer>

</body>

</html>