-
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 branch 'develop' into ui-reader
- Loading branch information
Showing
20 changed files
with
302 additions
and
241 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Generated by Django 3.2.25 on 2024-10-14 17:20 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("wagtailimages", "0025_alter_image_file_alter_rendition_file"), | ||
("cms", "0007_homepage_featured_video"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="homepage", | ||
name="background_image", | ||
field=models.ForeignKey( | ||
blank=True, | ||
help_text="Optional background image for the site header", | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
related_name="+", | ||
to="wagtailimages.image", | ||
), | ||
), | ||
] |
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
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 %} | ||
|
Oops, something went wrong.