Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
bfd8fce3
Commit
bfd8fce3
authored
Feb 19, 2020
by
Marie Simon
Committed by
Sébastiaan Versteeg
Feb 19, 2020
Browse files
Disable payment button for Thalia Pay in payment widget
parent
9f9eb192
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/payments/templates/payments/widgets/payment.html
View file @
bfd8fce3
...
...
@@ -14,12 +14,12 @@
<a
data-href=
"{% url 'admin:payments_payment_process' pk=payment.pk %}"
data-next=
"true"
data-type=
"card_payment"
class=
"button process"
>
{% trans "Process (card payment)" %}
</a>
{% if widget.value %}
{% if widget.value
and payment.paid_by.tpay_enabled
%}
<a
data-href=
"{% url 'admin:payments_payment_process' pk=payment.pk %}"
data-next=
"true"
data-type=
"tpay_payment"
class=
"button process"
>
{% trans "Process (Thalia Pay payment)" %}
</a>
{% else %}
<
div
class=
"button"
disabled
>
{% trans "Process (Thalia Pay payment)" %}
</
div
>
<
a
class=
"button"
disabled
>
{% trans "Process (Thalia Pay payment)" %}
</
a
>
{% endif %}
<a
data-href=
"{% url 'admin:payments_payment_process' pk=payment.pk %}"
data-next=
"true"
data-type=
"wire_payment"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment