From 806c8b943d049e184dd871fddea4059afb038087 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Mon, 7 Sep 2020 12:44:45 +0100 Subject: [PATCH] Move small class to label so that rule is actually applied --- app/views/checkout/_terms_and_conditions.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/checkout/_terms_and_conditions.html.haml b/app/views/checkout/_terms_and_conditions.html.haml index bf301139b0..6bafd6bbb7 100644 --- a/app/views/checkout/_terms_and_conditions.html.haml +++ b/app/views/checkout/_terms_and_conditions.html.haml @@ -1,5 +1,5 @@ - terms_and_conditions_activated = current_order.distributor.terms_and_conditions.file? - if terms_and_conditions_activated - %p.small + %p %input{ type: 'checkbox', id: 'accept_terms', ng: { model: "terms_and_conditions_accepted", init: "terms_and_conditions_activated=#{terms_and_conditions_activated}" } } - %label{for: "accept_terms"}= t('.message_html', terms_and_conditions_link: link_to( t( '.link_text' ), current_order.distributor.terms_and_conditions.url, target: '_blank')) + %label.small{for: "accept_terms"}= t('.message_html', terms_and_conditions_link: link_to( t( '.link_text' ), current_order.distributor.terms_and_conditions.url, target: '_blank'))