From be35f9762209f02ffbde5fb48c4cfecc0c98f886 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Tue, 29 Sep 2020 11:42:45 +0100 Subject: [PATCH] Add tooltip icon to terms and conditions --- .../modals/terms_and_conditions_info.html.haml | 13 +++++++++++++ .../enterprises/form/_business_details.html.haml | 1 + config/locales/en.yml | 6 +++++- 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 app/assets/javascripts/templates/admin/modals/terms_and_conditions_info.html.haml diff --git a/app/assets/javascripts/templates/admin/modals/terms_and_conditions_info.html.haml b/app/assets/javascripts/templates/admin/modals/terms_and_conditions_info.html.haml new file mode 100644 index 0000000000..5a3568085e --- /dev/null +++ b/app/assets/javascripts/templates/admin/modals/terms_and_conditions_info.html.haml @@ -0,0 +1,13 @@ +%div + .margin-bottom-30.text-center + .text-big + {{ 'js.admin.modals.terms_and_conditions_info.title' | t }} + .margin-bottom-30 + %p + {{ 'js.admin.modals.terms_and_conditions_info.message_1' | t }} + .margin-bottom-30 + %p + {{ 'js.admin.modals.terms_and_conditions_info.message_2' | t }} + + .text-center + %input.button.red.icon-plus{ type: 'button', value: t('js.admin.modals.got_it'), ng: { click: 'close()' } } diff --git a/app/views/admin/enterprises/form/_business_details.html.haml b/app/views/admin/enterprises/form/_business_details.html.haml index 41bf8c6f2c..7c72b1a4b2 100644 --- a/app/views/admin/enterprises/form/_business_details.html.haml +++ b/app/views/admin/enterprises/form/_business_details.html.haml @@ -35,6 +35,7 @@ .row .alpha.three.columns = f.label :terms_and_conditions, t('.terms_and_conditions') + %i.text-big.icon-question-sign.help-modal{ template: 'admin/modals/terms_and_conditions_info.html' } .omega.eight.columns %a{ href: '{{ Enterprise.terms_and_conditions }}', target: '_blank', ng: { if: 'Enterprise.terms_and_conditions' } } diff --git a/config/locales/en.yml b/config/locales/en.yml index 9691b851ed..42f6edcf2a 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2518,7 +2518,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using admin: enterprise_limit_reached: "You have reached the standard limit of enterprises per account. Write to %{contact_email} if you need to increase it." modals: - got_it: Got it + got_it: "Got it" close: "Close" invite: "Invite" invite_title: "Invite an unregistered user" @@ -2538,6 +2538,10 @@ See the %{link} to find out more about %{sitename}'s features and to start using customer_tagged_rules_text: > By creating rules related to a specific customer tag, you can override the default behaviour (whether it be to show or to hide items) for customers with the specified tag. + terms_and_conditions_info: + title: "Uploading Terms and Conditions" + message_1: "Terms and Conditions are the contract between you, the seller, and the shopper. If you upload a file here shoppers must accept your Terms and Conditions in order to complete checkout. For the shopper this will appear as a checkbox at checkout that must be checked in order to proceed with checkout. We highly recommend you upload Terms and Conditions in alignment with national legislation." + message_2: "Shoppers will only be required to accept Terms and Conditions once. However if you change you Terms and Conditions shoppers will again be required to accept them before they can checkout." panels: save: SAVE saved: SAVED