Fix missing double-quote mark in email templates
This commit is contained in:
parent
e4b76aa7cf
commit
48102b1e2a
12 changed files with 32 additions and 17 deletions
|
|
@ -15,7 +15,7 @@
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ form.non_field_errors }}
|
{{ form.non_field_errors }}
|
||||||
<div>
|
<div>
|
||||||
<label for="{{ form.code.id_for_label }}" class="block font-medium>{% trans "Verification Code" %}</label>
|
<label for="{{ form.code.id_for_label }}" class="block font-medium">{% trans "Verification Code" %}</label>
|
||||||
{{ form.code }}
|
{{ form.code }}
|
||||||
{{ form.code.errors }}
|
{{ form.code.errors }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -19,11 +19,24 @@
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ form.non_field_errors }}
|
{{ form.non_field_errors }}
|
||||||
<div>
|
<div>
|
||||||
<label for="{{ form.code.id_for_label }}" class="block font-medium>{% trans "Sign-In Code" %}</label>
|
<label for="{{ form.code.id_for_label }}" class="block font-medium">{% trans "Sign-In Code" %}</label>
|
||||||
{{ form.code }}
|
{{ form.code }}
|
||||||
{{ form.code.errors }}
|
{{ form.code.errors }}
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn btn-primary w-full">{% trans "Confirm" %}</button>
|
<button type="submit" class="btn btn-primary w-full">{% trans "Confirm" %}</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
|
const code = urlParams.get('code');
|
||||||
|
if (code) {
|
||||||
|
const codeInput = document.getElementById('{{ form.code.id_for_label }}');
|
||||||
|
if (codeInput) {
|
||||||
|
codeInput.value = code;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ form.non_field_errors }}
|
{{ form.non_field_errors }}
|
||||||
<div>
|
<div>
|
||||||
<label for="{{ form.code.id_for_label }}" class="block font-medium>{% trans "Reset Code" %}</label>
|
<label for="{{ form.code.id_for_label }}" class="block font-medium">{% trans "Reset Code" %}</label>
|
||||||
{{ form.code }}
|
{{ form.code }}
|
||||||
{{ form.code.errors }}
|
{{ form.code.errors }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ form.non_field_errors }}
|
{{ form.non_field_errors }}
|
||||||
<div>
|
<div>
|
||||||
<label for="{{ form.code.id_for_label }}" class="block font-medium>{% trans "Verification Code" %}</label>
|
<label for="{{ form.code.id_for_label }}" class="block font-medium">{% trans "Verification Code" %}</label>
|
||||||
{{ form.code }}
|
{{ form.code }}
|
||||||
{{ form.code.errors }}
|
{{ form.code.errors }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@
|
||||||
<form method="post" action="{{ action_url }}" class="space-y-4">
|
<form method="post" action="{{ action_url }}" class="space-y-4">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<div>
|
<div>
|
||||||
<label for="{{ form.email.id_for_label }}" class="block font-medium>{{ form.email.label }}</label>
|
<label for="{{ form.email.id_for_label }}" class="block font-medium">{{ form.email.label }}</label>
|
||||||
{{ form.email }}
|
{{ form.email }}
|
||||||
{{ form.email.errors }}
|
{{ form.email.errors }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,10 @@
|
||||||
{% load account %}
|
{% load account %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block content %}{% autoescape off %}{% blocktranslate %}Your sign-in code is listed below. Please enter it in your open browser window.{% endblocktranslate %}{% endautoescape %}
|
{% block content %}{% autoescape off %}{% blocktranslate %}Your login code is listed below. Please enter it in your open browser window or click the link below.{% endblocktranslate %}{% endautoescape %}
|
||||||
|
|
||||||
{{ code }}
|
{{ code }}
|
||||||
|
|
||||||
{% blocktranslate %}This mail can be safely ignored if you did not initiate this action.{% endblocktranslate %}{% endblock content %}
|
https://{{ current_site.domain }}/accounts/login/code/confirm/?code={{ code }}
|
||||||
|
|
||||||
|
{% blocktranslate %}This email can be safely ignored if you did not initiate this action.{% endblocktranslate %}{% endblock content %}
|
||||||
|
|
|
||||||
|
|
@ -15,13 +15,13 @@
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{% if current_emailaddress %}
|
{% if current_emailaddress %}
|
||||||
<div>
|
<div>
|
||||||
<label for="current_email" class="block font-medium>{% trans "Current email" %}:</label>
|
<label for="current_email" class="block font-medium">{% trans "Current email" %}:</label>
|
||||||
<input id="current_email" type="email" value="{{ current_emailaddress.email }}" disabled class="input input-bordered w-full">
|
<input id="current_email" type="email" value="{{ current_emailaddress.email }}" disabled class="input input-bordered w-full">
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if new_emailaddress %}
|
{% if new_emailaddress %}
|
||||||
<div>
|
<div>
|
||||||
<label for="new_email" class="block font-medium>
|
<label for="new_email" class="block font-medium">
|
||||||
{% if not current_emailaddress %}
|
{% if not current_emailaddress %}
|
||||||
{% trans "Current email" %}:
|
{% trans "Current email" %}:
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
@ -41,7 +41,7 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div>
|
<div>
|
||||||
<label for="{{ form.email.id_for_label }}" class="block font-medium>{% trans "Change to" %}:</label>
|
<label for="{{ form.email.id_for_label }}" class="block font-medium">{% trans "Change to" %}:</label>
|
||||||
{{ form.email }}
|
{{ form.email }}
|
||||||
{{ form.email.errors }}
|
{{ form.email.errors }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ form.non_field_errors }}
|
{{ form.non_field_errors }}
|
||||||
<div>
|
<div>
|
||||||
<label for="{{ form.email.id_for_label }}" class="block font-medium>{{ form.email.label }}</label>
|
<label for="{{ form.email.id_for_label }}" class="block font-medium">{{ form.email.label }}</label>
|
||||||
{{ form.email|add_class:"input input-bordered w-full" }}
|
{{ form.email|add_class:"input input-bordered w-full" }}
|
||||||
{{ form.email.errors }}
|
{{ form.email.errors }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
{{ form.non_field_errors }}
|
{{ form.non_field_errors }}
|
||||||
{% for field in form %}
|
{% for field in form %}
|
||||||
<div>
|
<div>
|
||||||
<label for="{{ field.id_for_label }}" class="block font-medium>{{ field.label }}</label>
|
<label for="{{ field.id_for_label }}" class="block font-medium">{{ field.label }}</label>
|
||||||
{{ field }}
|
{{ field }}
|
||||||
{{ field.errors }}
|
{{ field.errors }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -16,17 +16,17 @@
|
||||||
{{ form.non_field_errors }}
|
{{ form.non_field_errors }}
|
||||||
{% for field in form %}
|
{% for field in form %}
|
||||||
<div>
|
<div>
|
||||||
<label for="{{ field.id_for_label }}" class="block font-medium>{{ field.label }}</label>
|
<label for="{{ field.id_for_label }}" class="block font-medium">{{ field.label }}</label>
|
||||||
{{ field }}
|
{{ field }}
|
||||||
{{ field.errors }}
|
{{ field.errors }}
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{{ redirect_field }}
|
{{ redirect_field }}
|
||||||
<button type="submit" class="btn btn-primary w-full">{% trans "Request Code" %}</button>
|
<button type="submit" class="btn btn-primary w-full">{% trans "Request Sign-In Code" %}</button>
|
||||||
</form>
|
</form>
|
||||||
{% url 'account_login' as login_url %}
|
{% url 'account_login' as login_url %}
|
||||||
<div class="mt-4 text-center">
|
<div class="mt-4 text-center">
|
||||||
<a href="{{ login_url }}" class="text-primary underline">{% trans "Other sign-in options" %}</a>
|
<a href="{{ login_url }}" class="text-primary underline">{% trans "Login by Password" %}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
{{ form.non_field_errors }}
|
{{ form.non_field_errors }}
|
||||||
{% for field in form %}
|
{% for field in form %}
|
||||||
<div>
|
<div>
|
||||||
<label for="{{ field.id_for_label }}" class="block font-medium>{{ field.label }}</label>
|
<label for="{{ field.id_for_label }}" class="block font-medium">{{ field.label }}</label>
|
||||||
{{ field }}
|
{{ field }}
|
||||||
{{ field.errors }}
|
{{ field.errors }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
<div class="container mx-auto max-w-md mt-6 text-center">
|
<div class="container mx-auto max-w-md mt-6 text-center">
|
||||||
<h1 class="text-3xl font-bold mb-6">{% trans "Sign Up Closed" %}</h1>
|
<h1 class="text-3xl font-bold mb-6">{% trans "Sign Up Closed" %}</h1>
|
||||||
<p>
|
<p>
|
||||||
{% trans "We are sorry, but the sign up is currently closed." %}
|
{% trans "We're sorry, but sign ups are currently closed." %}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue