2020-10-18 08:05:41 +08:00
|
|
|
|
{% load static %}
|
2020-12-02 21:25:59 +08:00
|
|
|
|
{% load i18n %}
|
2020-01-01 21:24:29 +08:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang='zh-CN'>
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
2021-03-25 19:04:39 +08:00
|
|
|
|
<meta name=renderer content=webkit>
|
2020-01-01 21:24:29 +08:00
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
|
|
|
|
|
<meta http-equiv="Cache-Control" content="no-transform" />
|
|
|
|
|
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
|
|
|
|
<meta http-equiv="Cache-Control" content="max-age=7200" />
|
2020-05-02 18:16:57 +08:00
|
|
|
|
<link rel="icon" href="{% static 'favicon_16.png' %}"/>
|
2020-01-01 21:24:29 +08:00
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
2020-12-06 01:33:59 +08:00
|
|
|
|
<title>{% trans "请输入访问码" %} - {% if site_name != None and site_name != '' %}{{site_name}} {% else %}{% trans "站点标题" %}{% endif %}</title>
|
2020-01-01 21:24:29 +08:00
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
|
<link rel="stylesheet" href="{% static 'layui/css/layui.css' %}" crossorigin="anonymous">
|
|
|
|
|
<style>
|
|
|
|
|
body{
|
|
|
|
|
background-color: #fafafa;
|
|
|
|
|
}
|
|
|
|
|
.container{
|
|
|
|
|
display: flex;
|
|
|
|
|
display: -webkit-flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
.login-form{
|
|
|
|
|
margin-top: 15%;
|
|
|
|
|
padding: 20px 50px 20px 60px;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
-webkit-box-shadow: #666 0px 0px 10px;
|
2020-05-04 21:26:07 +08:00
|
|
|
|
-moz-box-shadow: #666 0px 0px 10px;
|
|
|
|
|
box-shadow: #666 0px 0px 10px;
|
2020-01-01 21:24:29 +08:00
|
|
|
|
}
|
|
|
|
|
.register-link{
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
}
|
|
|
|
|
/* 移动端输入框样式 */
|
|
|
|
|
@media screen and (max-width: 450px){
|
|
|
|
|
.layui-form-item .layui-input-inline {
|
|
|
|
|
display: block;
|
|
|
|
|
float: none;
|
|
|
|
|
left: -3px;
|
|
|
|
|
width: auto;
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
</head>
|
2021-03-06 07:51:39 +08:00
|
|
|
|
<body background="{% static 'PearAdminLayui/admin/images/background.svg' %}">
|
2020-01-01 21:24:29 +08:00
|
|
|
|
<div class="container">
|
|
|
|
|
<div></div>
|
|
|
|
|
<div></div>
|
|
|
|
|
<div class="login-form">
|
|
|
|
|
<form class="layui-form" action="" method='POST'>
|
|
|
|
|
{% csrf_token %}
|
|
|
|
|
<div class="layui-form-item">
|
2020-12-06 01:33:59 +08:00
|
|
|
|
<h4>{% trans "你正在访问:" %}</h4><br>
|
2020-03-07 09:30:11 +08:00
|
|
|
|
<strong><u>{{ project.name }}</u></strong>
|
2020-01-01 21:24:29 +08:00
|
|
|
|
<br><span style='color:red;margin-bottom: 10px;'>{{ errormsg }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="layui-form-item">
|
|
|
|
|
<input value="{{project.id}}" name="project_id" hidden>
|
|
|
|
|
<div class="layui-input-inline login-input">
|
2020-12-06 01:33:59 +08:00
|
|
|
|
<input type="text" name="viewcode" required lay-verify="required" placeholder="{% trans '请输入访问码' %}" autocomplete="off" class="layui-input" >
|
2020-01-01 21:24:29 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="layui-form-item">
|
|
|
|
|
<div class="layui-input-inline login-input">
|
2020-12-06 01:33:59 +08:00
|
|
|
|
<button class="layui-btn layui-btn-fluid layui-btn-radius layui-btn-normal" lay-submit lay-filter="formDemo" type="submit">{% trans "确认" %}</button>
|
2020-01-01 21:24:29 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|