From 0f9f4b07a8143861b3168d170f325a7770f104be Mon Sep 17 00:00:00 2001 From: ijdershem-jf Date: Thu, 27 Oct 2022 20:30:42 -0600 Subject: [PATCH] [9845] Make checkout terms and conditions label clickable; associate label with input using correct for attribute --- .../checkout/_platform_terms_of_service.html.haml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/views/checkout/_platform_terms_of_service.html.haml b/app/views/checkout/_platform_terms_of_service.html.haml index 07b85b734f..884ca0f865 100644 --- a/app/views/checkout/_platform_terms_of_service.html.haml +++ b/app/views/checkout/_platform_terms_of_service.html.haml @@ -1,4 +1,10 @@ %p - %input{ type: "checkbox", id: "accept_terms", ng: { model: "platform_tos_accepted", init: "platform_tos_accepted = #{platform_tos_already_accepted?}" } } - %label.small{for: "platform_tos_accepted"} + %input{ type: "checkbox", + id: "accept_terms", + ng: { + model: "platform_tos_accepted", + init: "platform_tos_accepted = #{platform_tos_already_accepted?}" + } + } + %label.small{for: "accept_terms"} = t(".message_html", tos_link: link_to_platform_terms)