Commit f0f99ea801e44138f75933d59fd1a84a70057f76

Authored by zhenchaozhu
1 parent 821b6fb8a0
Exists in master

modify sys page

Showing 1 changed file with 1 additions and 4 deletions   Show diff stats
templates/login.html
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 5 <meta http-equiv="X-UA-Compatible" content="IE=edge">
6 <title>小程序管理平台 | 登录</title> 6 <title>小程序管理平台 | 登录</title>
7 {% load staticfiles %} 7 {% load staticfiles %}
8 <!-- Tell the browser to be responsive to screen width --> 8 <!-- Tell the browser to be responsive to screen width -->
9 <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> 9 <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
10 <!-- Bootstrap 3.3.5 --> 10 <!-- Bootstrap 3.3.5 -->
11 <link rel="stylesheet" href="{% static "bootstrap/css/bootstrap.min.css"%}" > 11 <link rel="stylesheet" href="{% static "bootstrap/css/bootstrap.min.css"%}" >
12 <!-- Font Awesome --> 12 <!-- Font Awesome -->
13 <link rel="stylesheet" href="{% static "css/font-awesome.min.css"%}"> 13 <link rel="stylesheet" href="{% static "css/font-awesome.min.css"%}">
14 <!-- Ionicons --> 14 <!-- Ionicons -->
15 <link rel="stylesheet" href="{% static "css/ionicons.min.css"%}"> 15 <link rel="stylesheet" href="{% static "css/ionicons.min.css"%}">
16 <!-- Theme style --> 16 <!-- Theme style -->
17 <link rel="stylesheet" href="{% static "css/AdminLTE.min.css"%}"> 17 <link rel="stylesheet" href="{% static "css/AdminLTE.min.css"%}">
18 <!-- iCheck --> 18 <!-- iCheck -->
19 <link rel="stylesheet" href="{% static "plugins/iCheck/square/blue.css"%}"> 19 <link rel="stylesheet" href="{% static "plugins/iCheck/square/blue.css"%}">
20 20
21 <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> 21 <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
22 <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> 22 <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
23 <!--[if lt IE 9]> 23 <!--[if lt IE 9]>
24 <script src="{% static "js/html5shiv.min.js"%}"></script> 24 <script src="{% static "js/html5shiv.min.js"%}"></script>
25 <script src="{% static "js/respond.min.js"%}"></script> 25 <script src="{% static "js/respond.min.js"%}"></script>
26 <![endif]--> 26 <![endif]-->
27 </head> 27 </head>
28 <body class="hold-transition login-page"> 28 <body class="hold-transition login-page">
29 <div class="login-box"> 29 <div class="login-box">
30 <div class="login-logo"> 30 <div class="login-logo">
31 <a href="/"><b>系统管理平台</b></a> 31 <a href="/"><b>系统管理平台</b></a>
32 </div><!-- /.login-logo --> 32 </div><!-- /.login-logo -->
33 <div class="login-box-body"> 33 <div class="login-box-body">
34 <form name="loginform" action="/login/" method="post" onsubmit="return checkempty();" class="margin-bottom-0" autocomplete="off"> 34 <form name="loginform" action="/login/" method="post" onsubmit="return checkempty();" class="margin-bottom-0" autocomplete="off">
35 {% csrf_token %} 35 {% csrf_token %}
36 <div class="form-group has-feedback"> 36 <div class="form-group has-feedback">
37 <input type="text" id='username' name='username' class="form-control input-lg" placeholder="工号" /> 37 <input type="text" id='username' name='username' class="form-control input-lg" placeholder="用户名" />
38 <span class="glyphicon glyphicon-user form-control-feedback"></span> 38 <span class="glyphicon glyphicon-user form-control-feedback"></span>
39 </div> 39 </div>
40 <div class="form-group has-feedback"> 40 <div class="form-group has-feedback">
41 <input type="password" id='password' name='password' class="form-control input-lg" placeholder="密码" /> 41 <input type="password" id='password' name='password' class="form-control input-lg" placeholder="密码" />
42 <span class="glyphicon glyphicon-lock form-control-feedback"></span> 42 <span class="glyphicon glyphicon-lock form-control-feedback"></span>
43 </div> 43 </div>
44 <div class="row"> 44 <div class="row">
45 <div class="col-xs-8"> 45 <div class="col-xs-8">
46 <div class="checkbox icheck"> 46 <div class="checkbox icheck">
47 <label> 47 <label>
48 {% comment %} 48 {% comment %}
49 <input type="checkbox"> Remember Me 49 <input type="checkbox"> Remember Me
50 {% endcomment %} 50 {% endcomment %}
51 </label> 51 </label>
52 </div> 52 </div>
53 </div><!-- /.col --> 53 </div><!-- /.col -->
54 <div class="col-xs-4"> 54 <div class="col-xs-4">
55 <button type="submit" class="btn btn-primary btn-block btn-flat">登录</button> 55 <button type="submit" class="btn btn-primary btn-block btn-flat">登录</button>
56 </div><!-- /.col --> 56 </div><!-- /.col -->
57 </div> 57 </div>
58 </form> 58 </form>
59
60 <a href="">忘记密码</a><br>
61 <a href="class="text-center">账号申请</a>
62 <p style="color:red">注意:本平台不支持IE,请使用chrome或者safari</p> 59 <p style="color:red">注意:本平台不支持IE,请使用chrome或者safari</p>
63 </div><!-- /.login-box-body --> 60 </div><!-- /.login-box-body -->
64 </div><!-- /.login-box --> 61 </div><!-- /.login-box -->
65 62
66 63
67 <script> 64 <script>
68 var alert_msg = {{ alert_msg }} 65 var alert_msg = {{ alert_msg }}
69 if (alert_msg == 1){ 66 if (alert_msg == 1){
70 alert ('用户名或密码不能为空')}; 67 alert ('用户名或密码不能为空')};
71 if (alert_msg == 2){ 68 if (alert_msg == 2){
72 alert ('账号或密码错误')}; 69 alert ('账号或密码错误')};
73 </script> 70 </script>
74 71
75 <script> 72 <script>
76 function checkempty(){ 73 function checkempty(){
77 if ($("#username").val() ==""){ 74 if ($("#username").val() ==""){
78 alert('用户名不能为空'); 75 alert('用户名不能为空');
79 $("#username").focus(); 76 $("#username").focus();
80 return false; 77 return false;
81 } 78 }
82 if ($("#password").val() ==""){ 79 if ($("#password").val() ==""){
83 alert('用户名不能为空'); 80 alert('用户名不能为空');
84 $("#password").focus(); 81 $("#password").focus();
85 return false; 82 return false;
86 } 83 }
87 return true; 84 return true;
88 } 85 }
89 </script> 86 </script>
90 87
91 <!-- jQuery 2.1.4 --> 88 <!-- jQuery 2.1.4 -->
92 <script src="{%static "js/jQuery-2.1.4.min.js"%}"></script> 89 <script src="{%static "js/jQuery-2.1.4.min.js"%}"></script>
93 <!-- Bootstrap 3.3.5 --> 90 <!-- Bootstrap 3.3.5 -->
94 <script src="{%static "js/bootstrap.min.js" %}"></script> 91 <script src="{%static "js/bootstrap.min.js" %}"></script>
95 <!-- iCheck --> 92 <!-- iCheck -->
96 <script src="{%static "js/icheck.min.js"%}"></script> 93 <script src="{%static "js/icheck.min.js"%}"></script>
97 94
98 </body> 95 </body>
99 </html> 96 </html>
100 97