-
Notifications
You must be signed in to change notification settings - Fork 13
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 #1093 from ecds/ui-bug-triage
A series of UI improvements, including bug triage and aesthetic tweaks
- Loading branch information
Showing
14 changed files
with
220 additions
and
39 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
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
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,26 +1,68 @@ | ||
{% extends "account/base.html" %} | ||
|
||
{% load sass_tags %} | ||
{% load i18n %} | ||
{% load account %} | ||
{% load crispy_forms_tags %} | ||
|
||
{% block head_title %}{% trans "Password Reset" %}{% endblock %} | ||
|
||
{% block extra_javascript %} | ||
<script> | ||
document.addEventListener('DOMContentLoaded', function () { | ||
// Get the reset button | ||
const resetBtn = document.getElementById('sign-up-form-reset-btn'); | ||
|
||
// Add event listener to the reset button | ||
resetBtn.addEventListener('click', function () { | ||
// Get the form by its ID | ||
const form = document.getElementById('password_reset_form'); | ||
// Reset the form | ||
form.reset(); | ||
}); | ||
}); | ||
</script> | ||
{% endblock %} | ||
|
||
{% block inner %} | ||
<link type="text/css" href="{% sass_src 'css/readux2/menu-inverse.scss' %}" rel="stylesheet"> | ||
{% include '_home/_nav.html' %} | ||
|
||
<div class="uk-container uk-margin-bottom"> | ||
<!-- Breadcrumb --> | ||
<ul class="breadcrumb uk-margin-small-top uk-margin-bottom"> | ||
<li><a href="/">Home</a></li> | ||
<li>Password Reset</li> | ||
</ul> | ||
<!-- End --> | ||
|
||
<h1 class="page-title uk-margin-top uk-margin-remove-bottom">{% trans "Password Reset" %}</h1> | ||
|
||
<h1>{% trans "Password Reset" %}</h1> | ||
{% if user.is_authenticated %} | ||
{% include "account/snippets/already_logged_in.html" %} | ||
{% endif %} | ||
|
||
<p>{% trans "Forgotten your password? Enter your e-mail address below, and we'll send you an e-mail allowing you to reset it." %}</p> | ||
|
||
<form method="POST" action="{% url 'account_reset_password' %}" class="password_reset"> | ||
<form class="uk-form-stacked signup" id="password_reset_form" method="post" action="{% url 'account_reset_password' %}"> | ||
{% csrf_token %} | ||
{{ form|crispy }} | ||
<input class="btn btn-primary" type="submit" value="{% trans 'Reset My Password' %}" /> | ||
</form> | ||
<!-- Email Field --> | ||
<div class="uk-margin uk-input-icon uk-width-1-1 uk-width-1-2@m"> | ||
<span uk-icon="icon: mail" class="uk-icon"></span> | ||
<input type="email" placeholder="{% trans 'Email' %}" class="uk-input" name="email" required> | ||
</div> | ||
|
||
<!-- Action Buttons --> | ||
<div class="action-buttons justify-content-normal uk-margin-bottom uk-width-1-1 uk-width-1-2@m"> | ||
<button type="button" id="sign-up-form-reset-btn" class="uk-button uk-button-default">{% trans "Reset Form" %}</button> | ||
<button type="submit" class="uk-button sign-in-btn">{% trans "Reset Password" %} </button> | ||
</div> | ||
|
||
<!-- Links --> | ||
<div class="uk-flex uk-flex-between uk-width-1-1"> | ||
<p>{% blocktrans %}Please <a href="#" class="uk-link text-anchor-blue">contact us</a> if you have any trouble resetting your password.{% endblocktrans %}</p> | ||
</div> | ||
</form> | ||
|
||
<p>{% blocktrans %}Please contact us if you have any trouble resetting your password.{% endblocktrans %}</p> | ||
</div> | ||
{% endblock %} | ||
|
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,17 +1,34 @@ | ||
{% extends "account/base.html" %} | ||
{% load sass_tags %} | ||
|
||
{% load i18n %} | ||
{% load account %} | ||
|
||
{% block head_title %}{% trans "Password Reset" %}{% endblock %} | ||
|
||
{% block inner %} | ||
<h1>{% trans "Password Reset" %}</h1> | ||
|
||
<link type="text/css" href="{% sass_src 'css/readux2/menu-inverse.scss' %}" rel="stylesheet"> | ||
{% include '_home/_nav.html' %} | ||
|
||
<div class="uk-container uk-margin-bottom"> | ||
|
||
<!-- Breadcrumb --> | ||
<ul class="breadcrumb uk-margin-small-top uk-margin-bottom"> | ||
<li><a href="/">Home</a></li> | ||
<li>Password Reset</li> | ||
</ul> | ||
<!-- End --> | ||
|
||
<h1 class="page-title uk-margin-top uk-margin-remove-bottom">{% trans "Password Reset" %}</h1> | ||
|
||
{% if user.is_authenticated %} | ||
{% include "account/snippets/already_logged_in.html" %} | ||
{% endif %} | ||
|
||
<p>{% blocktrans %}We have sent you an e-mail. Please contact us if you do not receive it within a few minutes.{% endblocktrans %}</p> | ||
<p>{% blocktrans %}We have sent you an e-mail. Please <a href="#" class="uk-link text-anchor-blue">contact us</a> if you do not receive it within a few minutes.{% endblocktrans %}</p> | ||
</div> | ||
|
||
</div> | ||
{% endblock %} | ||
|
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,17 +1,32 @@ | ||
{% extends "account/base.html" %} | ||
{% load sass_tags %} | ||
|
||
{% load i18n %} | ||
{% load crispy_forms_tags %} | ||
|
||
{% block head_title %}{% trans "Set Password" %}{% endblock %} | ||
|
||
{% block inner %} | ||
<h1>{% trans "Set Password" %}</h1> | ||
<link type="text/css" href="{% sass_src 'css/readux2/menu-inverse.scss' %}" rel="stylesheet"> | ||
{% include '_home/_nav.html' %} | ||
|
||
<div class="uk-container uk-margin-bottom"> | ||
|
||
<!-- Breadcrumb --> | ||
<ul class="breadcrumb uk-margin-small-top uk-margin-bottom"> | ||
<li><a href="/">Home</a></li> | ||
<li>Set Password</li> | ||
</ul> | ||
<!-- End --> | ||
|
||
<h1 class="page-title uk-margin-top uk-margin-remove-bottom">{% trans "Set Password" %}</h1> | ||
|
||
<form method="POST" action="{% url 'account_set_password' %}" class="password_set"> | ||
{% csrf_token %} | ||
{{ form|crispy }} | ||
<input type="submit" name="action" value="{% trans 'Set Password' %}"/> | ||
</form> | ||
|
||
</div> | ||
{% endblock %} | ||
|
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,23 +1,93 @@ | ||
{% extends "account/base.html" %} | ||
|
||
{% load sass_tags %} | ||
{% load i18n %} | ||
{% load crispy_forms_tags %} | ||
|
||
{% block head_title %}{% trans "Signup" %}{% endblock %} | ||
{% block head_title %}{% trans "Readux - Sign up" %}{% endblock %} | ||
|
||
{% block extra_javascript %} | ||
<script | ||
src="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.15.2/js/selectize.min.js" | ||
integrity="sha512-IOebNkvA/HZjMM7MxL0NYeLYEalloZ8ckak+NDtOViP7oiYzG5vn6WVXyrJDiJPhl4yRdmNAG49iuLmhkUdVsQ==" | ||
crossorigin="anonymous" | ||
referrerpolicy="no-referrer" | ||
></script> | ||
<script> | ||
document.addEventListener('DOMContentLoaded', function () { | ||
// Get the reset button | ||
const resetBtn = document.getElementById('sign-up-form-reset-btn'); | ||
|
||
// Add event listener to the reset button | ||
resetBtn.addEventListener('click', function () { | ||
// Get the form by its ID | ||
const form = document.getElementById('signup_form'); | ||
// Reset the form | ||
form.reset(); | ||
}); | ||
}); | ||
</script> | ||
{% endblock %} | ||
|
||
{% block inner %} | ||
<h1>{% trans "Sign Up" %}</h1> | ||
<link type="text/css" href="{% sass_src 'css/readux2/menu-inverse.scss' %}" rel="stylesheet"> | ||
{% include '_home/_nav.html' %} | ||
|
||
<p>{% blocktrans %}Already have an account? Then please <a href="{{ login_url }}">sign in</a>.{% endblocktrans %}</p> | ||
<div class="uk-container uk-margin-bottom"> | ||
|
||
<form class="signup" id="signup_form" method="post" action="{% url 'account_signup' %}"> | ||
{% csrf_token %} | ||
{{ form|crispy }} | ||
{% if redirect_field_value %} | ||
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" /> | ||
{% endif %} | ||
<button class="btn btn-primary" type="submit">{% trans "Sign Up" %} »</button> | ||
</form> | ||
<!-- Breadcrumb --> | ||
<ul class="breadcrumb uk-margin-small-top uk-margin-bottom"> | ||
<li><a href="/">Home</a></li> | ||
<li>Sign up</li> | ||
</ul> | ||
<!-- End --> | ||
<h1 class="page-title uk-margin-top uk-margin-remove-bottom">{% trans "Sign Up" %}</h1> | ||
|
||
{% endblock %} | ||
<p>{% blocktrans %}Already have an account? Then please <a href="#" uk-toggle="target: #login-modal" class="uk-link text-anchor-blue">sign in</a>.{% endblocktrans %}</p> | ||
|
||
<form class="uk-form-stacked signup" id="signup_form" method="post" action="{% url 'account_signup' %}"> | ||
{% csrf_token %} | ||
|
||
<!-- Username Field --> | ||
<div class="uk-margin uk-input-icon uk-width-1-1 uk-width-1-2@m"> | ||
<span uk-icon="icon: user" class="uk-icon"></span> | ||
<input type="text" placeholder="{% trans 'Username' %}" class="uk-input" name="username" required> | ||
</div> | ||
|
||
<!-- Email Field --> | ||
<div class="uk-margin uk-input-icon uk-width-1-1 uk-width-1-2@m"> | ||
<span uk-icon="icon: mail" class="uk-icon"></span> | ||
<input type="email" placeholder="{% trans 'Email' %}" class="uk-input" name="email" required> | ||
</div> | ||
|
||
<!-- Password Field --> | ||
<div class="uk-margin uk-input-icon uk-width-1-1 uk-width-1-2@m"> | ||
<span uk-icon="icon: lock" class="uk-icon"></span> | ||
<input type="password" placeholder="{% trans 'Password' %}" class="uk-input" name="password" required> | ||
</div> | ||
|
||
<!-- Password Confirmation Field --> | ||
<div class="uk-margin uk-input-icon uk-width-1-1 uk-width-1-2@m"> | ||
<span uk-icon="icon: lock" class="uk-icon"></span> | ||
<input type="password" placeholder="{% trans 'Confirm Password' %}" class="uk-input" name="password_confirm" required> | ||
</div> | ||
|
||
{% if redirect_field_value %} | ||
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" /> | ||
{% endif %} | ||
|
||
<!-- Action Buttons --> | ||
<div class="action-buttons justify-content-normal uk-margin-bottom uk-width-1-1 uk-width-1-2@m"> | ||
<button type="button" id="sign-up-form-reset-btn" class="uk-button uk-button-default">{% trans "Reset Form" %}</button> | ||
<button type="submit" class="uk-button sign-in-btn">{% trans "Sign Up" %} </button> | ||
</div> | ||
|
||
<!-- Links --> | ||
<div class="uk-flex uk-flex-between uk-width-1-1"> | ||
<a href="{% url 'account_reset_password' %}" class="uk-link text-anchor-blue">{% trans "Forgot Password?" %}</a> | ||
</div> | ||
</form> | ||
|
||
|
||
</div> | ||
|
||
{% endblock %} |
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
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
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
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
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
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
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
Oops, something went wrong.