Awight has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/260228

Change subject: Add a country selector, links to OWTG
......................................................................

Add a country selector, links to OWTG

Display the country and currency as informational clickbait for frustrated
donors.  We might want to implement a tricky payment method popup, but for now
we simply link to wmfwiki's Other Ways to Give page.

TODO:
Apply to the RapidHtml forms.

Bug: T96047
Change-Id: I058534e2806da3a8824e94849605a69e8014522d
---
M gateway_forms/mustache/forms.css
M gateway_forms/mustache/payment_amount.html.mustache
2 files changed, 11 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface 
refs/changes/28/260228/1

diff --git a/gateway_forms/mustache/forms.css b/gateway_forms/mustache/forms.css
index 2aa4046..a888bd9 100644
--- a/gateway_forms/mustache/forms.css
+++ b/gateway_forms/mustache/forms.css
@@ -25,6 +25,11 @@
        margin-right:0 !important;
 }
 
+.country_switcher {
+       position: absolute;
+       right: 2em;
+}
+
 #payment_gateway-donate-addl-info-secure-logos {
        float: left;
        margin-right: 2em;
diff --git a/gateway_forms/mustache/payment_amount.html.mustache 
b/gateway_forms/mustache/payment_amount.html.mustache
index 675d9c1..6086876 100644
--- a/gateway_forms/mustache/payment_amount.html.mustache
+++ b/gateway_forms/mustache/payment_amount.html.mustache
@@ -1,3 +1,9 @@
+<span class="country_switcher">
+       <a href="{{ otherways_url }}" title="{{ l10n 
"donate_interface-otherways-short" }}">
+               {{ country }} / {{ currency_code }}
+       </a>
+</span>
+
 <h3 class="amount_header">{{# recurring }}{{ l10n 
"donate_interface-monthlybox-amount" }}{{/ recurring }}{{^ recurring }}{{ l10n 
"donate_interface-amount-legend" }}{{/ recurring }}:
        <span id="amount_input" {{^ show_amount_input }}class="hidden"{{/ 
show_amount_input }} >
                <input type="number" step="any" name="amount" id="amount" 
value="{{ amount }}" />

-- 
To view, visit https://gerrit.wikimedia.org/r/260228
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I058534e2806da3a8824e94849605a69e8014522d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: master
Gerrit-Owner: Awight <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to