MrDoc/template/app_doc/check_viewcode.html

77 lines
2.8 KiB
HTML
Raw Normal View History

2020-01-01 21:24:29 +08:00
{% load staticfiles %}
<!DOCTYPE html>
<html lang='zh-CN'>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edgechrome=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" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>请输入访问码 - MrDoc</title>
<meta charset="utf-8" />
<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;
text-align: center;
}
.container{
display: flex;
display: -webkit-flex;
justify-content: center;
align-items: center;
}
.login-form{
margin-top: 15%;
{#width: 400px;#}
padding: 20px 50px 20px 60px;
background-color: #fff;
-webkit-box-shadow: #666 0px 0px 10px;
-moz-box-shadow: #666 0px 0px 10px;
box-shadow: #666 0px 0px 10px;
}
.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>
<body>
<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">
<h4>你正在访问:<strong><u>{{ project.name }}</u></strong></h4>
<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">
<input type="text" name="viewcode" required lay-verify="required" placeholder="请输入访问码" autocomplete="off" class="layui-input" >
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-inline login-input">
<button class="layui-btn layui-btn-fluid layui-btn-radius layui-btn-normal" lay-submit lay-filter="formDemo" type="submit">确认</button>
</div>
</div>
</form>
</div>
</div>
</body>
</html>