diff --git a/app/templates/app/includes/sidebar_profile.html b/app/templates/app/includes/sidebar_profile.html index 72caa8dcd754a7264bed1dfcc4df6ac901bc56c6..dee25754a44739ec8bc3d9a33fbbea844c7ce629 100644 --- a/app/templates/app/includes/sidebar_profile.html +++ b/app/templates/app/includes/sidebar_profile.html @@ -1,6 +1,6 @@ -<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' %}"> + <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> <div class="sidebar-brand-text mx-3">Digipus</div> </a> @@ -10,12 +10,16 @@ <!-- Nav Item - Dashboard --> <li class="nav-item"> - <a class="nav-link" href="/profil/"> - <span>Halaman Profil</span></a> + <a class="nav-link" href="/profil/"> + <span>Halaman Profil</span></a> </li> <li class="nav-item"> - <a class="nav-link" href="/sunting/"> - <span>Sunting Profil</span></a> + <a class="nav-link" href="/sunting/"> + <span>Sunting Profil</span></a> + </li> + <li class="nav-item"> + <a class="nav-link" href="/change-password/"> + <span>Change Password</span></a> </li> </ul> \ No newline at end of file diff --git a/app/templates/change-password.html b/app/templates/change-password.html new file mode 100644 index 0000000000000000000000000000000000000000..cd9bc26a4dbe54cda04d17359141878e91bc0332 --- /dev/null +++ b/app/templates/change-password.html @@ -0,0 +1,17 @@ +{% extends 'app/base_profile.html' %} +{% block title %}Change Password{% endblock%} +{% block content %} + + +<h1> Change Password </h1> +<br/><br/> + +<div class = "from-group"> + <form method="POST"> + {% csrf_token %} + {{ form.as_p }} + <button class="btn btn-secondary"> Change Password</button> + </form> +</div> + +{% endblock %} \ No newline at end of file diff --git a/app/templates/password_success.html b/app/templates/password_success.html new file mode 100644 index 0000000000000000000000000000000000000000..3c61031a145a7f5cbf6bfa30b7f62368419dba19 --- /dev/null +++ b/app/templates/password_success.html @@ -0,0 +1,11 @@ +{% extends 'app/base_profile.html' %} +{% block title %}Change Password{% endblock%} +{% block content %} + + +<h1> Password was Changed Successfully!</h1> +<br/><br/> + + + +{% endblock %} \ No newline at end of file diff --git a/digipus/__pycache__/settings.cpython-36.pyc b/digipus/__pycache__/settings.cpython-36.pyc index a2dfadd532b5c69b61e9c0a2768ccc1ee6376edf..20df0c90cc3f2c037c813b0bcfe76a67c759ad9f 100644 Binary files a/digipus/__pycache__/settings.cpython-36.pyc and b/digipus/__pycache__/settings.cpython-36.pyc differ