博客园地址
https://www.cnblogs.com/you-men/
代码语言:javascript复制<!DOCTYPE html>
<html class="loading" lang="en" data-textdirection="ltr">
<head>
<title>幽梦运维平台登录</title>
{{template "admin/html-head.html" .}}
<link rel="stylesheet" type="text/css" href="/static/css/pages/authentication.css">
</head>
<body class="vertical-layout vertical-menu-modern boxicon-layout no-card-shadow 1-column navbar-sticky footer-static bg-full-screen-image blank-page blank-page"
data-open="click" data-menu="vertical-menu-modern" data-col="1-column">
<div class="app-content content">
<div class="content-overlay"></div>
<div class="content-wrapper">
<div class="content-header row">
</div>
<div class="content-body">
<!-- login page start -->
<section id="auth-login" class="row flexbox-container">
<div class="col-xl-8 col-11">
<div class="card bg-authentication mb-0">
<div class="row m-0">
<!-- left section-login -->
<div class="col-md-6 col-12 px-0">
<div class="card disable-rounded-right mb-0 p-2 h-100 d-flex justify-content-center">
<div class="card-header pb-1">
<div class="card-title">
<h4 class="text-center mb-2">登录</h4>
</div>
</div>
<div class="card-content">
<div class="card-body">
<div class="d-flex flex-md-row flex-column justify-content-around">
<a href="#"
class="btn btn-social btn-google btn-block font-small-3 mr-md-1 mb-md-0 mb-1">
<i class="bx bxl-github font-medium-3"></i><span
class="pl-50 d-block text-center">GitHub</span></a>
<a href="#"
class="btn btn-social btn-block mt-0 btn-facebook font-small-3">
<i class="bx bx-phone font-medium-3"></i><span
class="pl-50 d-block text-center">手机号</span></a>
</div>
<div class="divider">
<div class="divider-text text-uppercase text-muted"><small>或登录邮箱</small>
</div>
{{ if .errors.HasErrors }}
{{ range .errors.Errors }}
{{ index . 0 }}
{{ end }}
{{ end }}
</div>
<form action="{{ urlfor `AuthController.Login` }}" method="POST">
<input type="hidden" name="_xsrf" value="{{ .xsrf_token }}">
<div class="form-group mb-50">
<label class="text-bold-600" for="exampleInputEmail1">邮箱</label>
<input type="email" class="form-control" id="exampleInputEmail1"
name="username" value="{{ .form.Username }}"
placeholder="邮箱"></div>
<div class="form-group">
<label class="text-bold-600"
for="exampleInputPassword1">密码</label>
<input type="password" class="form-control" name="password"
id="exampleInputPassword1" placeholder="密码">
</div>
<div class="form-group d-flex flex-md-row flex-column justify-content-between align-items-center">
<div class="text-left">
<div class="checkbox checkbox-sm">
<input type="checkbox" class="form-check-input"
id="exampleCheck1">
<label class="checkboxsmall" for="exampleCheck1"><small>记住我
</small></label>
</div>
</div>
<div class="text-right"><a href="auth-forgot-password.html"
class="card-link"><small>忘记密码
</small></a></div>
</div>
<button type="submit"
class="btn btn-primary glow w-100 position-relative">登录<i
id="icon-arrow" class="bx bx-right-arrow-alt"></i></button>
</form>
<hr>
<div class="text-center"><small class="mr-25">没有账户?</small><a
href="{{ urlfor `AuthController.Register` }}"><small>注册</small></a></div>
</div>
</div>
</div>
</div>
<div class="col-md-6 d-md-block d-none text-center align-self-center p-3">
<div class="card-content">
<img class="img-fluid" src="/static/images/pages/login.png" alt="branding logo">
</div>
</div>
</div>
</div>
</div>
</section>
</div>
</div>
</div>
{{ template "admin/html-footer.html" . }}
</body>
</html>