Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
73366c5
[T3423] Desktop layout for the new-sponsorship fast-checkout flow
danpa32 Sep 2, 2026
ed7abd0
[T3423] Add desktop-only left-column headings to the fast-checkout steps
danpa32 Sep 2, 2026
7c33005
[T3423] Left-align the new desktop headings
danpa32 Sep 2, 2026
bb14441
[T3423] Split my2_new_sponsorship_wizard.xml into partials
danpa32 Sep 2, 2026
37ee41d
[T3423] Fix manifest to load the split fast-checkout wizard templates
danpa32 Sep 8, 2026
1d673c2
[T3423] Desktop two-column layout and payment-mode radios for the fas…
danpa32 Sep 8, 2026
d50f368
[T3423] Full-width split background, live total, and visual polish fo…
danpa32 Sep 8, 2026
eba393b
[T3423] Apply the two-column desktop layout and split background to t…
danpa32 Sep 9, 2026
127023d
[T3423] Rename my2_new_sponsorship_wizard/ to my2_new_sponsorship/, m…
danpa32 Sep 9, 2026
fc05e16
[T3423] Extract "All set" summary into its own template
danpa32 Sep 9, 2026
ab6f16e
[T3423] Redesign the "All set" summary page layout
danpa32 Sep 9, 2026
e356a73
[T3423] Fix mobile ordering and column-height coupling on the "All se…
danpa32 Sep 9, 2026
1c890dc
[T3423] Float the Sponsorship+ info modal's close button, fix a dead …
danpa32 Sep 9, 2026
112c48b
[T3423] Apply the two-column desktop layout to the Write&Pray fast-ch…
danpa32 Sep 10, 2026
bbe41c6
[T3423] Make the letter card's dynamic text on the thank-you page tra…
danpa32 Sep 10, 2026
ce5d81b
[T3423] Restyle the generic 400 error page
danpa32 Sep 10, 2026
e3d3403
[T3423] Use "Sponsorship" instead of "Godparent" for the free W&P rol…
danpa32 Sep 10, 2026
0827b16
[T3423] Translate new/changed front-end strings (de, fr_CH, it)
danpa32 Sep 10, 2026
9b52d39
[T3423] Make "Received"/"Pending" translatable on the All Set page
danpa32 Sep 10, 2026
a025f92
[T3423] Translate new/changed front-end strings for Nordic (fi_FI, sv…
danpa32 Sep 10, 2026
89336a2
[T3423] Translate "Pending" (All Set page payment status) - de, fr_CH…
danpa32 Sep 10, 2026
91cbbf6
[T3423] Fix pre-commit: give custom_400 priority=99 for its replace x…
danpa32 Sep 10, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions my_compassion/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,16 @@
"templates/pages/my2_login_template.xml",
"templates/pages/my2_gifts.xml",
"templates/pages/my2_sponsorships.xml",
"templates/pages/my2_new_sponsorship_wizard.xml",
"templates/pages/my2_new_sponsorship_payment.xml",
"templates/pages/my2_new_sponsorship_details.xml",
"templates/pages/my2_new_sponsorship/progress_bar.xml",
"templates/pages/my2_new_sponsorship/sponsorship_plus.xml",
"templates/pages/my2_new_sponsorship/standard_step.xml",
"templates/pages/my2_new_sponsorship/wap_step.xml",
"templates/pages/my2_new_sponsorship/logged_in_steps.xml",
"templates/pages/my2_new_sponsorship/my2_new_sponsorship_wizard.xml",
"templates/pages/my2_new_sponsorship/thank_you_page.xml",
"templates/pages/my2_new_sponsorship/all_set.xml",
"templates/pages/my2_new_sponsorship/my2_new_sponsorship_payment.xml",
"templates/pages/my2_new_sponsorship/my2_new_sponsorship_details.xml",
"templates/pages/my2_update_card.xml",
"templates/pages/my2_gift_package.xml",
"templates/pages/my2_gifts_thank_you.xml",
Expand Down
22 changes: 14 additions & 8 deletions my_compassion/controllers/my2_sponsorships.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def my2_render_write_and_pray_page(self, **kwargs):
Renders the write and pray variant of the sponsorships page.

Write&Pray is Switzerland-only: the free, no-financial-support
godparent role it offers is not a product the other countries sell.
sponsorship role it offers is not a product the other countries sell.

return: An HTTP response containing a rendered template with the
sponsorships landing page.
Expand Down Expand Up @@ -701,6 +701,15 @@ def _render_form_content(wizard):
f"/web/login?{urlencode({'redirect': request.httprequest.full_path})}"
)

# The step's own submit radios, when it has any: one per payment
# mode, in the fast-checkout step's own left column (see
# standard_step.xml), in place of the generic Continue/Finish button.
payment_mode_buttons = wizard._get_payment_mode_buttons()
# Whether those radios are this step's submit at all, which is what
# says if the generic button may stand in when the list above is
# empty.
step_offers_payment_modes = wizard._step_offers_payment_modes()

# Render step template first
inner_step_html = request.env["ir.qweb"]._render(
wizard.current_step.template.id,
Expand All @@ -715,6 +724,8 @@ def _render_form_content(wizard):
"sponsorship_amount": _product_display_price("sponsorship"),
"sponsorship_plus_extra": _product_display_price("fund_gen"),
"login_url_redirect": login_url_redirect,
"payment_mode_buttons": payment_mode_buttons,
"step_offers_payment_modes": step_offers_payment_modes,
},
)

Expand All @@ -725,13 +736,8 @@ def _render_form_content(wizard):
"wizard": wizard,
"inner_step_html": inner_step_html,
"currency_name": currency_name,
# The step's own submit buttons, when it has any: one per
# payment mode, in place of the generic Continue/Finish one.
"payment_mode_buttons": wizard._get_payment_mode_buttons(),
# Whether those buttons are this step's submit at all, which
# is what says if the generic button may stand in when the
# list above is empty.
"step_offers_payment_modes": wizard._step_offers_payment_modes(),
"payment_mode_buttons": payment_mode_buttons,
"step_offers_payment_modes": step_offers_payment_modes,
},
)

Expand Down
Loading
Loading