Skip to content

Commit

Permalink
T1555 Allow face reveal after sponsorship was made
Browse files Browse the repository at this point in the history
  • Loading branch information
ecino committed Jul 1, 2024
1 parent 0258c78 commit b9159a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions website_sponsorship/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ def sponsorship_confirmation(self, child_id, **kwargs):
"payment_modes": payment_modes,
"origins": origins,
"done": kwargs.get("done", not contract.is_first_sponsorship),
"face_reveal": kwargs.get("face_reveal"),
},
)

Expand Down
3 changes: 2 additions & 1 deletion website_sponsorship/templates/form_success_page.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@
>
<a href="#sponsorship-form">
<img
t-att-src="main_object.website_image"
t-att-src="main_object.website_image if not face_reveal else main_object.image_url.replace('media.ci.org/', 'media.ci.org/g_face,c_thumb,w_150,h_150,r_max/')"
class="figure-img rounded-circle"
alt="child picture"
loading="lazy"
aria-describedby="tooltip156301"
style="max-width: 250px;"
/>
</a>
<h1
Expand Down

0 comments on commit b9159a8

Please sign in to comment.