-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #132 from DDMAL/login-design
Frontend updates for account-related pages
- Loading branch information
Showing
14 changed files
with
304 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
web-app/django/VIM/apps/main/templates/registration/changePassword.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{% extends "base.html" %} | ||
|
||
{% load static %} | ||
|
||
{% block title %} | ||
Change Password | ||
{% endblock title %} | ||
|
||
{% block css_files %} | ||
<link rel="stylesheet" | ||
type="text/css" | ||
href="{% static 'main/css/login.css' %}" /> | ||
{% endblock css_files %} | ||
|
||
{% block content %} | ||
<div class="container content-container d-flex justify-content-center align-items-center"> | ||
<div class="col-10 p-4 align-content-center account-container"> | ||
{% if form.errors %} | ||
<div class="alert alert-danger p-2 z-2 d-flex justify-content-end message-container"> | ||
{% for field, error in form.errors.items %}{{ error }}{% endfor %} | ||
</div> | ||
{% endif %} | ||
<div class="container z-1"> | ||
<div class="row"> | ||
<div class="col-6 my-4 login-form" id="change-password"> | ||
<h5 class="mb-4"> | ||
<strong>Change Password</strong> | ||
</h5> | ||
<form method="post"> | ||
{% csrf_token %} | ||
<div class="mb-4"> | ||
<label for="exampleInputPassword0" class="form-label">Current Password</label> | ||
<div>{{ form.old_password }}</div> | ||
</div> | ||
<div class="mb-4"> | ||
<label for="exampleInputPassword1" class="form-label">New Password</label> | ||
<div>{{ form.new_password1 }}</div> | ||
</div> | ||
<div class="mb-4"> | ||
<label for="exampleInputPassword2" class="form-label"> | ||
Confirm New Password | ||
</label> | ||
<div>{{ form.new_password2 }}</div> | ||
</div> | ||
<button type="submit" class="btn btn-primary account-btn"> | ||
Change Password | ||
</button> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock content %} | ||
|
||
{% block scripts %} | ||
{% endblock scripts %} |
53 changes: 0 additions & 53 deletions
53
web-app/django/VIM/apps/main/templates/registration/change_password.html
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
104 changes: 53 additions & 51 deletions
104
web-app/django/VIM/apps/main/templates/registration/register.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,53 @@ | ||
{% extends "base.html" %} | ||
|
||
{% load static %} | ||
|
||
{% block title %} | ||
Register | ||
{% endblock title %} | ||
|
||
{% block css_files %} | ||
<link rel="stylesheet" | ||
type="text/css" | ||
href="{% static 'main/css/login.css' %}" /> | ||
{% endblock css_files %} | ||
|
||
{% block content %} | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="mr-3 p-4 col-md-8"> | ||
{% if form.errors %} | ||
<div class="alert alert-danger alert-dismissible"> | ||
{% for field, error in form.errors.items %}{{ error }}{% endfor %} | ||
</div> | ||
{% endif %} | ||
<div class="col-md mt-4 login-form" id="registration"> | ||
<h5 class="mb-4"> | ||
<strong>Create a New Account</strong> | ||
</h5> | ||
<form method="post"> | ||
{% csrf_token %} | ||
<div class="mt-4 mb-4"> | ||
<label for="exampleInputEmail" class="form-label">Email Address</label> | ||
{{ form.username }} | ||
</div> | ||
<div class="mb-4"> | ||
<label for="exampleInputPassword1" class="form-label">Password</label> | ||
{{ form.password1 }} | ||
</div> | ||
<div class="mb-4"> | ||
<label for="exampleInputPassword2" class="form-label">Confirm Password</label> | ||
{{ form.password2 }} | ||
</div> | ||
<button type="submit" class="btn btn-primary">Register</button> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock content %} | ||
|
||
{% block scripts %} | ||
{% endblock scripts %} | ||
{% extends "base.html" %} | ||
|
||
{% load static %} | ||
|
||
{% block title %} | ||
Register | ||
{% endblock title %} | ||
|
||
{% block css_files %} | ||
<link rel="stylesheet" | ||
type="text/css" | ||
href="{% static 'main/css/login.css' %}" /> | ||
{% endblock css_files %} | ||
|
||
{% block content %} | ||
<div class="container content-container d-flex justify-content-center align-items-center"> | ||
<div class="col-10 p-4 align-content-center account-container"> | ||
{% if form.errors %} | ||
<div class="alert alert-danger p-2 z-2 message-container"> | ||
{% for field, error in form.errors.items %}{{ error }}{% endfor %} | ||
</div> | ||
{% endif %} | ||
<div class="container z-1"> | ||
<div class="row"> | ||
<div class="col-6 my-4" id="registration"> | ||
<h5 class="mb-4"> | ||
<strong>Create a New Account</strong> | ||
</h5> | ||
<form method="post"> | ||
{% csrf_token %} | ||
<div class="mt-4 mb-4"> | ||
<label for="exampleInputEmail" class="form-label">Email Address</label> | ||
<div>{{ form.username }}</div> | ||
</div> | ||
<div class="mb-4"> | ||
<label for="exampleInputPassword1" class="form-label">Password</label> | ||
<div>{{ form.password1 }}</div> | ||
</div> | ||
<div class="mb-4"> | ||
<label for="exampleInputPassword2" class="form-label">Confirm Password</label> | ||
<div>{{ form.password2 }}</div> | ||
</div> | ||
<button type="submit" class="btn btn-primary account-btn">Register</button> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock content %} | ||
|
||
{% block scripts %} | ||
{% endblock scripts %} |
56 changes: 56 additions & 0 deletions
56
web-app/django/VIM/apps/main/templates/registration/resetPassword.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{% extends "base.html" %} | ||
|
||
{% load static %} | ||
|
||
{% block title %} | ||
Reset Password | ||
{% endblock title %} | ||
|
||
{% block css_files %} | ||
<link rel="stylesheet" | ||
type="text/css" | ||
href="{% static 'main/css/login.css' %}" /> | ||
{% endblock css_files %} | ||
|
||
{% block content %} | ||
<div class="container content-container d-flex justify-content-center align-items-center"> | ||
<div class="col-10 p-4 align-content-center account-container"> | ||
{% if form.errors %} | ||
<div class="alert alert-danger p-2 z-2 message-container"> | ||
{% for field, error in form.errors.items %}{{ error }}{% endfor %} | ||
</div> | ||
{% endif %} | ||
<div class="container pb-4 z-1 d-flex flex-column"> | ||
<div class="row"> | ||
<div class="col-12"> | ||
<h5> | ||
<strong>Reset Password</strong> | ||
</h5> | ||
<p class="mt-4"> | ||
Forgotten your password? | ||
<br /> | ||
Enter your email address below, and we'll email instructions for setting a new one. | ||
</p> | ||
</div> | ||
</div> | ||
<div class="row mb-4"> | ||
<div class="col-12 mb-4"> | ||
<form method="post"> | ||
{% csrf_token %} | ||
<div class="mt-2 mb-4"> | ||
<label for="exampleInputEmail" class="form-label">Email Address</label> | ||
<div>{{ form.email }}</div> | ||
</div> | ||
<button type="submit" class="btn btn-primary mb-4 account-btn"> | ||
Send Password Reset Email | ||
</button> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock content %} | ||
|
||
{% block scripts %} | ||
{% endblock scripts %} |
Oops, something went wrong.