You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: project_styleguide/templates/patterns/pages/donate/donate_personal_details_view.html
+1-1
Original file line number
Diff line number
Diff line change
@@ -110,7 +110,7 @@ <h1>
110
110
{% else %}
111
111
{% include 'patterns/molecules/forms/form_field.html' with field=form.email tooltip="We'll use this to send you an email confirmation when you've made your donation, and we'll use it to keep you up-to-date if you choose to keep in touch." %}
Copy file name to clipboardExpand all lines: project_styleguide/templates/patterns/pages/donate/donate_single_payment_view.html
+36-29
Original file line number
Diff line number
Diff line change
@@ -8,45 +8,52 @@
8
8
{% endblock %}
9
9
10
10
{% block content_inner %}
11
-
<divid="payments__payment-wrapper">
12
-
{% if gift_aid_allowed and currency == "GBP" %}
13
-
{% if is_pay_in %}
14
-
<h1class="wrapper--small-width">{% blocktrans with amount=payment_amount|floatformat:"2"|intcomma gift_aid_amount=gift_aid_amount|floatformat:"-2" %}Boost your payment of {{ currency_symbol }}{{ amount }} to <spanclass="donate__gift-aid-figure">{{ currency_symbol }}{{ gift_aid_amount }}</span> at no extra cost to you with Gift Aid{% endblocktrans %}</h1>
15
-
{% else %}
16
-
<h1class="wrapper--small-width">{% blocktrans with amount=payment_amount|floatformat:"2"|intcomma gift_aid_amount=gift_aid_amount|floatformat:"2"|intcomma %}Boost your single donation of {{ currency_symbol }}{{ amount }} to <spanclass="donate__gift-aid-figure">{{ currency_symbol }}{{ gift_aid_amount }}</span> at no extra cost to you with Gift Aid{% endblocktrans %}</h1>
17
-
{% endif %}
18
-
{% else %}
19
-
{% if is_pay_in %}
20
-
<h1class="wrapper--small-width">{% blocktrans with amount=payment_amount|floatformat:"2"|intcomma %}You're making a payment of {{ currency_symbol }}{{ amount }}{% endblocktrans %}</h1>
11
+
{% with amount=personal_details.amount|floatformat:"2"|intcomma gift_aid_amount=personal_details.gift_aid_amount|floatformat:"2"|intcomma %}
12
+
13
+
<divid="payments__payment-wrapper">
14
+
{% if gift_aid_allowed and currency == "GBP" %}
15
+
{% if is_pay_in %}
16
+
<h1class="wrapper--small-width">{% blocktrans %}Boost your payment of {{ currency_symbol }}{{ amount }} to <spanclass="donate__gift-aid-figure">{{ currency_symbol }}{{ gift_aid_amount }}</span> at no extra cost to you with Gift Aid{% endblocktrans %}</h1>
17
+
{% else %}
18
+
<h1class="wrapper--small-width">{% blocktrans %}Boost your single donation of {{ currency_symbol }}{{ amount }} to <spanclass="donate__gift-aid-figure">{{ currency_symbol }}{{ gift_aid_amount }}</span> at no extra cost to you with Gift Aid{% endblocktrans %}</h1>
19
+
{% endif %}
21
20
{% else %}
22
-
<h1class="wrapper--small-width">{% blocktrans with amount=payment_amount|floatformat:"2"|intcomma %}You're making a single donation of {{ currency_symbol }}{{ amount }}{% endblocktrans %}</h1>
21
+
{% if is_pay_in %}
22
+
<h1class="wrapper--small-width">{% blocktrans %}You're making a payment of {{ currency_symbol }}{{ amount }}{% endblocktrans %}</h1>
23
+
{% else %}
24
+
<h1class="wrapper--small-width">{% blocktrans %}You're making a single donation of {{ currency_symbol }}{{ amount }}{% endblocktrans %}</h1>
<pclass="wrapper--small-width">{% trans "If you are a UK taxpayer, by ticking the box below the government will increase your donation by 25% and it won't cost you a penny." %}</p>
<pclass="wrapper--small-width">{% trans "If you are a UK taxpayer, by ticking the box below the government will increase your donation by 25% and it won't cost you a penny." %}</p>
30
33
31
-
{% include "patterns/pages/donate/partials/gift_aid_block.html" %}
32
-
{% endif %}
34
+
{% include "patterns/pages/donate/partials/gift_aid_block.html" %}
35
+
{% endif %}
33
36
34
-
{% render_form_field form.braintree_nonce %}
35
-
{% render_form_field form.payment_mode %}
36
-
</form>
37
+
{% render_form_field form.braintree_nonce %}
38
+
{% render_form_field form.payment_mode %}
39
+
</form>
37
40
38
-
{% if is_pay_in %}
39
-
<h2class="heading-block">{% trans "Pay with" %}</h2>
40
-
{% else %}
41
-
<h2class="heading-block heading-block--xxl">{% trans "Donate with" %}</h2>
{% block title %}{% trans "Payment details | Event registration payment" %}{% endblock %}
5
5
@@ -8,21 +8,21 @@
8
8
{% endblock %}
9
9
10
10
{% block content_inner %}
11
-
<divid="payments__payment-wrapper">
12
-
<h1class="wrapper--small-width">{% blocktrans with amount=payment_amount|floatformat:"-2" %}You're making a payment of {{ currency_symbol }}{{ amount }}{% endblocktrans %}</h1>
11
+
<divid="payments__payment-wrapper">
12
+
<h1class="wrapper--small-width">{% blocktrans with amount=personal_details.amount|floatformat:"2"|intcomma %}You're making a payment of {{ currency_symbol }}{{ amount }}{% endblocktrans %}</h1>
0 commit comments