django之html页面

在这里插入图片描述

<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="sunlineDevops">
    <meta name="author" content="www.josh.com">

    <link rel="shortcut icon" href="/static/assets/images/favicon_1.ico">

    <title>SimpletourDevops</title>

    <link href="/static/assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="/static/assets/css/core.css" rel="stylesheet" type="text/css" />
    <link href="/static/assets/css/components.css" rel="stylesheet" type="text/css" />
    <link href="/static/assets/css/icons.css" rel="stylesheet" type="text/css" />
    <link href="/static/assets/css/pages.css" rel="stylesheet" type="text/css" />
    <link href="/static/assets/css/responsive.css" rel="stylesheet" type="text/css" />

    <!-- HTML5 Shiv and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
        <![endif]-->

    <script src="/static/assets/js/modernizr.min.js"></script>

</head>

<body>


    <div class="account-pages"></div>
    <div class="clearfix"></div>
    <div class="wrapper-page">
        <div class=" card-box">
            <div class="panel-heading">
                <h3 class="text-center"> Sunline <strong class="text-custom">Devops</strong> </h3>
            </div>


            <div class="panel-body">
                <form class="form-horizontal m-t-20" role="form" method="post" action="{% url 'Login' %}">
                    {% csrf_token %}
                    
                    <!-- Email Field -->
                    <div class="form-group">
                        <div class="col-xs-12">
                            <label for="email">邮箱</label>
                            <input type="email" id="email" name="email" class="form-control" placeholder="请输入邮箱">
                        </div>
                    </div>

                    <!-- Password Field -->
                    <div class="form-group">
                        <div class="col-xs-12">
                            <label for="password">密码</label>
                            <input type="password" id="password" name="password" class="form-control" placeholder="请输入密码">
                        </div>
                    </div>

                    <div class="form-group ">
                        <div class="col-xs-12">
                            <div class="checkbox checkbox-primary">
                                <input id="checkbox-signup" type="checkbox">
                                <label for="checkbox-signup">
                                    记住我
                                </label>
                            </div>
                        </div>
                    </div>

                    <div class="form-group text-center m-t-40">
                        <div class="col-xs-12">
                            <button class="btn btn-pink btn-block text-uppercase waves-effect waves-light"
                                type="submit">登录</button>
                        </div>
                    </div>

                    <div class="form-group m-t-30 m-b-0">
                        <div class="col-sm-12">
                            <a href="{% url 'SendResetEmail' %}" class="text-dark"><i class="fa fa-lock m-r-5"></i>忘记密码</a>
                            <a href="{% url 'Register' %}" class="text-primary m-l-5"><b>立即注册</b></a>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <script>
        var resizefunc = [];
    </script>
    <!-- jQuery  -->
    <script src="/static/assets/js/jquery.min.js"></script>
    <script src="/static/assets/js/bootstrap.min.js"></script>
    <script src="/static/assets/js/detect.js"></script>
    <script src="/static/assets/js/fastclick.js"></script>
    <script src="/static/assets/js/jquery.slimscroll.js"></script>
    <script src="/static/assets/js/jquery.blockUI.js"></script>
    <script src="/static/assets/js/waves.js"></script>
    <script src="/static/assets/js/wow.min.js"></script>
    <script src="/static/assets/js/jquery.nicescroll.js"></script>
    <script src="/static/assets/js/jquery.scrollTo.min.js"></script>

    <script src="/static/assets/plugins/notifyjs/dist/notify.min.js"></script>
    <script src="/static/assets/plugins/notifications/notify-metro.js"></script>

    <script src="/static/assets/js/jquery.core.js"></script>
    <script src="/static/assets/js/jquery.app.js"></script>

    <!--导入通知插件JS -->

    <script type="text/javascript">
        jQuery(document).ready(function () {
            $('button[type=submit]').click(function (e) {
                e.preventDefault();
                $.ajax({
                    type: "post",
                    dataType: 'json',
                    data: $('.form-horizontal').serialize(),
                    url: "{% url 'Login' %}",
                    success: function (result) {
                        var msgerror = result.msgerror;
                        if (msgerror) {
                            $.Notification.autoHideNotify('error', 'top right', '系统通知', msgerror);
                        } else {
                            setTimeout(function () {
                                location.href = '{% url 'index' %}';
                            }, 500);

                        }
                    },
                });
            });
        });
    </script>

</body>

</html>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

超凡脫俗

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值