Fakultas Ilmu Komputer UI

Commit b034328f authored by Yaumi Alfadha's avatar Yaumi Alfadha
Browse files

Merge branch '1706023031-67' into 'master'

[GREEN] make reset password & send to email

See merge request !86
parents 8a2740a1 d93ed15b
Pipeline #60101 passed with stages
in 20 minutes and 18 seconds
{% load static %}
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
{% block title %}{% endblock %}
<!-- Custom fonts for this template -->
<link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
<!-- Custom styles for this template -->
<link rel="icon" type="image/png" href="{% static 'images/icons/logo.ico' %}" />
<link href="{% static 'css/sb-admin-2.min.css' %}" rel="stylesheet">
<link rel="stylesheet" href="{% static 'css/button.css' %}">
<!-- Custom styles for this page -->
<link href="{% static 'vendor/datatables/dataTables.bootstrap4.min.css' %}" rel="stylesheet">
<body id="page-top" style="font-family: 'Poppins', sans-serif;">
<!-- Page Wrapper -->
<div id="wrapper">
<!-- Sidebar -->
<ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar">
<!-- Sidebar - Brand -->
<a class="sidebar-brand d-flex align-items-center justify-content-center" href="{% url 'daftar_katalog' %}">
<div class="sidebar-brand-icon rotate-n-15">
<div class="sidebar-brand-text mx-3">Digipus</div>
<!-- Divider -->
<hr class="sidebar-divider my-0">
<!-- Nav Item - Dashboard -->
<!-- End of Sidebar -->
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<!-- Topbar -->
<nav class="navbar navbar-expand navbar-light bg-white topbar mb-4 static-top shadow">
<!-- Sidebar Toggle (Topbar) -->
<button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3">
<em class="fa fa-bars"></em>
<div class="sidebar-brand-text mx-3">Diskominfo Kota Depok</div>
<!-- Topbar Navbar -->
<!-- End of Topbar -->
<!-- Begin Page Content -->
<div class="container-fluid">
{% block content %}{% endblock %}
<!-- /.container-fluid -->
<!-- End of Main Content -->
<!-- Footer -->
<footer class="sticky-footer bg-white">
<div class="container my-auto">
<div class="copyright text-center my-auto">
<span>Copyright &copy; Diskominfo Kota Depok 2020</span>
<!-- End of Footer -->
<!-- End of Content Wrapper -->
<!-- End of Page Wrapper -->
<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded" href="#page-top">
<em class="fas fa-angle-up"></em>
<!-- Bootstrap core JavaScript-->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
<!-- Core plugin JavaScript-->
<script src="https://code.jquery.com/jquery-3.5.0.min.js"
integrity="sha256-xNzN2a4ltkB44Mc/Jz3pT4iU1cmeR0FkXs4pru/JxaQ=" crossorigin="anonymous"></script>
<!-- Custom scripts for all pages-->
<script src="{% static 'js/sb-admin-2.min.js' %}"></script>
<!-- Page level plugins -->
<script src="{% static 'vendor/datatables/jquery.dataTables.min.js' %}"></script>
<script src="{% static 'vendor/datatables/dataTables.bootstrap4.min.js' %}"></script>
<!-- Page level custom scripts -->
<script src="{% static 'js/demo/datatables-demo.js' %}"></script>
\ No newline at end of file
{% extends 'app/base_reset.html' %}
{% block title %}Reset Password{% endblock%}
{% block content %}
<h1> Reset Password </h1>
<p>Forgotten your password ? Enter email address below, and we'll email instructions for setting a new one.</p>
<div class = "from-group">
<form method="POST">
{% csrf_token %}
{{ form.as_p }}
<button class="btn btn-secondary"> Submit</button>
{% endblock %}
\ No newline at end of file
{% extends 'app/base_reset.html' %}
{% block title %}Password reset complete{% endblock%}
{% block content %}
<h1> Password reset complete </h1>
<p>Your password has been set. You may go ahead and log in now.</p>
<a href='/login'>Log in</a>
{% endblock %}
\ No newline at end of file
{% extends 'app/base_reset.html' %}
{% block title %}Enter new password{% endblock%}
{% block content %}
<h1> Enter new password </h1>
<div class = "from-group">
<form method="POST">
{% csrf_token %}
{{ form.as_p }}
<button class="btn btn-secondary"> Update Password</button>
{% endblock %}
\ No newline at end of file
{% extends 'app/base_reset.html' %}
{% block title %}Password reset sent{% endblock%}
{% block content %}
<h1> Password reset sent </h1>
<p>We’ve emailed you instructions for setting your password, if an account exists with the email you entered. You should receive them shortly.</p>
<p>If you don’t receive an email, please make sure you’ve entered the address you registered with, and check your spam folder.</p>
{% endblock %}
\ No newline at end of file
...@@ -45,4 +45,16 @@ urlpatterns = [ ...@@ -45,4 +45,16 @@ urlpatterns = [
path("baca-nanti/", ReadLaterView.as_view(), name="read-later"), path("baca-nanti/", ReadLaterView.as_view(), name="read-later"),
path("baca-nanti-toggle/", views.toggle_readlater, name="toggle-read-later"), path("baca-nanti-toggle/", views.toggle_readlater, name="toggle-read-later"),
path("stats/", StatisticsView.as_view(), name="stats"), path("stats/", StatisticsView.as_view(), name="stats"),
] ]
...@@ -65,6 +65,10 @@ ...@@ -65,6 +65,10 @@
Belum mendaftar? klik di sini Belum mendaftar? klik di sini
</a> </a>
<br> <br>
<a href="/reset_password" class="txt1">
Lupa password? klik di sini
<a href="/registrasi" class="txt1"> <a href="/registrasi" class="txt1">
Ingin jadi kontributor? klik di sini Ingin jadi kontributor? klik di sini
</a> </a>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment