Fix missing double-quote mark in email templates

This commit is contained in:
badblocks 2025-05-18 11:29:52 -07:00
parent e4b76aa7cf
commit 48102b1e2a
12 changed files with 32 additions and 17 deletions

View file

@ -15,7 +15,7 @@
{% csrf_token %}
{{ form.non_field_errors }}
<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.errors }}
</div>

View file

@ -19,11 +19,24 @@
{% csrf_token %}
{{ form.non_field_errors }}
<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.errors }}
</div>
<button type="submit" class="btn btn-primary w-full">{% trans "Confirm" %}</button>
</form>
</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 %}

View file

@ -15,7 +15,7 @@
{% csrf_token %}
{{ form.non_field_errors }}
<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.errors }}
</div>

View file

@ -15,7 +15,7 @@
{% csrf_token %}
{{ form.non_field_errors }}
<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.errors }}
</div>

View file

@ -46,7 +46,7 @@
<form method="post" action="{{ action_url }}" class="space-y-4">
{% csrf_token %}
<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.errors }}
</div>

View file

@ -2,8 +2,10 @@
{% load account %}
{% 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 }}
{% 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 %}

View file

@ -15,13 +15,13 @@
{% csrf_token %}
{% if current_emailaddress %}
<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">
</div>
{% endif %}
{% if new_emailaddress %}
<div>
<label for="new_email" class="block font-medium>
<label for="new_email" class="block font-medium">
{% if not current_emailaddress %}
{% trans "Current email" %}:
{% else %}
@ -41,7 +41,7 @@
</div>
{% endif %}
<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.errors }}
</div>

View file

@ -11,7 +11,7 @@
{% csrf_token %}
{{ form.non_field_errors }}
<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.errors }}
</div>

View file

@ -12,7 +12,7 @@
{{ form.non_field_errors }}
{% for field in form %}
<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.errors }}
</div>

View file

@ -16,17 +16,17 @@
{{ form.non_field_errors }}
{% for field in form %}
<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.errors }}
</div>
{% endfor %}
{{ 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>
{% url 'account_login' as login_url %}
<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>
{% endblock content %}

View file

@ -17,7 +17,7 @@
{{ form.non_field_errors }}
{% for field in form %}
<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.errors }}
</div>

View file

@ -8,7 +8,7 @@
<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>
<p>
{% trans "We are sorry, but the sign up is currently closed." %}
{% trans "We're sorry, but sign ups are currently closed." %}
</p>
</div>
{% endblock content %}