From 710b50b25f27aae132a6716f92b274be95facdc0 Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Thu, 18 Mar 2021 12:21:25 -0500 Subject: [PATCH] i18n campaign_gift_option/_form_modal.html.erb --- .../_form_modal.html.erb | 48 +++++++++++-------- config/locales/campaign_gift_options.en.yml | 20 ++++++++ 2 files changed, 48 insertions(+), 20 deletions(-) create mode 100644 config/locales/campaign_gift_options.en.yml diff --git a/app/views/campaign_gift_options/_form_modal.html.erb b/app/views/campaign_gift_options/_form_modal.html.erb index 49baa4b0..a89e7aba 100644 --- a/app/views/campaign_gift_options/_form_modal.html.erb +++ b/app/views/campaign_gift_options/_form_modal.html.erb @@ -5,7 +5,7 @@ @@ -19,28 +19,31 @@
- - + + <%= text_field_tag( + 'name', + nil, + placeholder: t('gift_name_example'), + required:true, + 'parsley-maxlength' => '40', + 'parsley-trigger' => 'change') + %>
- -

You can add a recurring and/or one-time amount to your gift options. If you leave one blank, the donor won't be presented with that option. If you fill out both, then the donor will be able to choose between the two.

+ +

<%= t('campaign_gift_options.explanation_of_recurring_or_one_time_gift_options')%>

- +
- +
@@ -50,7 +53,7 @@
- +
@@ -58,25 +61,30 @@
- -

After the limit has been reached, contributors will not be able to select this gift option. Leave this blank to not set a limit.

- + +

<%= t('campaign_gift_options.quantity_limit_description')%>

+ <%= number_field_tag( + 'quantity', + nil, + placeholder: t('campaign_gift_options.quantity_limit_placeholder'), + class: 'input--200') + %>
- -

Check this box to make the address field required and to add the text 'Shipping address' above the address field. This option is useful for order fulfillment.

+ +

<%= t('campaign_gift_options.require_shipping_description') %>

- -

Check this box to hide the number of contributions made towards this gift option.

+ +

<%= t('campaign_gift_options.hide_contributions_description') %>

@@ -90,7 +98,7 @@ diff --git a/config/locales/campaign_gift_options.en.yml b/config/locales/campaign_gift_options.en.yml new file mode 100644 index 00000000..391968f4 --- /dev/null +++ b/config/locales/campaign_gift_options.en.yml @@ -0,0 +1,20 @@ +# License: CC0-1.0 + +en: + campaign_gift_options: + gift_option: Gift Option + gift_name_and_character_limit: Gift name (max 40 characters) + gift_name_example: eg. "A backpack full of school supplies" + amount: Amount + explanation_of_recurring_or_one_time_gift_options: You can add a recurring and/or one-time amount to your gift options. If you leave one blank, the donor won't be presented with that option. If you fill out both, then the donor will be able to choose between the two. + one_time: One-time + recurring: Recurring + short_description: Short description (140 characters max) + quantity_limit: Quantity limit (optional) + quantity_limit_description: After the limit has been reached, contributors will not be able to select this gift option. Leave this blank to not set a limit. + quantity_limit_placeholder: Enter limit amount + requires_shipping: Requires shipping (optional) + requires_shipping_description: Use this to make the address field required and to add the text 'Shipping address' above the address field. This option is useful for order fulfillment. + hide_contributions: Hide contributions (optional) + hide_contributions_description: Use this to hide the number of contributions made towards this gift option. + manage_gift_options: Manage Gift Options