Skip to content

Commit

Permalink
buttons: change text & add styling to confirm email page
Browse files Browse the repository at this point in the history
  • Loading branch information
vellip authored and hom3mad3 committed Nov 13, 2024
1 parent b6a6d8c commit 76f709d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ <h2>{% blocktranslate %}Contact Information{% endblocktranslate %}</h2>
{% endif %}
</div>

{% include 'meinberlin_contrib/includes/form_submit_actions.html' %}
{% include 'meinberlin_contrib/includes/form_submit_actions.html' with button_text='Send' %}
</form>
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@

{% include 'meinberlin_contrib/includes/form_field.html' with field=form.point_label %}

{% include 'meinberlin_contrib/includes/form_submit_actions.html' %}
{% include 'meinberlin_contrib/includes/form_submit_actions.html' with button_text='Send' %}
</form>
26 changes: 16 additions & 10 deletions meinberlin/templates/account/email_confirm.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
{% extends "account/base.html" %}
{% load i18n account %}

{% block head_title %}{% translate "Confirm Email Address" %}{% endblock %}
{% block head_title %}{% translate "Confirm Email Address" %}{% endblock head_title %}

{% block content %}
<div class="narrow-wrapper">
<h1>{% translate "Confirm Email Address" %}</h1>

{% if confirmation %}
{% user_display confirmation.email_address.user as user_display %}
<p>{% blocktranslate with confirmation.email_address.email as email %}Please confirm that <a href="mailto:{{ email }}">{{ email }}</a> is an email address for user {{ user_display }}.{% endblocktranslate %}</p>
{% user_display confirmation.email_address.user as user_display %}
<p>
{% blocktranslate with confirmation.email_address.email as email %}Please confirm that <a href="mailto:{{ email }}">{{ email }}</a> is an email address for user {{ user_display }}.{% endblocktranslate %}
</p>

<form method="post">
{% csrf_token %}
<button class="btn btn--primary" type="submit">{% translate 'Confirm' %}</button>
</form>
<form method="post">
{% csrf_token %}
<button class="button button--full-width" type="submit">{% translate 'Confirm' %}</button>
</form>
{% else %}
{% url 'account_email' as email_url %}
<p>{% blocktranslate %}This email confirmation link expired or is invalid. Please <a href="{{ email_url }}">issue a new email confirmation request</a>.{% endblocktranslate %}</p>
{% url 'account_email' as email_url %}
<p>
{% blocktranslate %}This email confirmation link expired or is invalid. Please <a href="{{ email_url }}">issue a new email confirmation request</a>.{% endblocktranslate %}
</p>

{% endif %}
</div>

{% endblock %}
{% endblock content %}

0 comments on commit 76f709d

Please sign in to comment.