mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-17 00:07:24 +00:00
added Enterprise registration exit message and moved step TYPE translations to a new structure on en.yml (test if transifex picks up the existing translations)
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
.small-12.columns
|
||||
.alert-box.info{ "ofn-inline-alert" => true, ng: { show: "visible" } }
|
||||
%h6{ "ng-bind" => "'enterprise_success' | t:{enterprise: enterprise.name}" }
|
||||
%span {{'enterprise_registration_exit_message' | t}}
|
||||
%a.close{ ng: { click: "close()" } } ×
|
||||
|
||||
.small-12.large-8.columns
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
.row
|
||||
.small-12.columns
|
||||
%header
|
||||
%h2{ "ng-bind" => "'enterprise.registration.modal.steps.type.headline' | t:{enterprise: enterprise.name}" }
|
||||
%h2= t(".headline", enterprise: "{{enterprise.name}}")
|
||||
%h4
|
||||
{{'enterprise.registration.modal.steps.type.question' | t}}
|
||||
= t(".question")
|
||||
|
||||
%form{ name: 'type', novalidate: true, ng: { controller: "RegistrationFormCtrl", submit: "create(type)" } }
|
||||
.row#enterprise-types{ 'data-equalizer' => true, ng: { if: "::enterprise.type != 'own'" } }
|
||||
@@ -17,32 +17,32 @@
|
||||
.small-12.medium-6.large-6.columns{ 'data-equalizer-watch' => true }
|
||||
%a.btnpanel#producer-panel{ href: "#", ng: { click: "enterprise.is_primary_producer = true", class: "{selected: enterprise.is_primary_producer}" } }
|
||||
%i.ofn-i_059-producer
|
||||
%h4 {{'enterprise.registration.modal.steps.type.yes_producer' | t}}
|
||||
%h4= t(".yes_producer")
|
||||
|
||||
.small-12.medium-6.large-6.columns{ 'data-equalizer-watch' => true }
|
||||
%a.btnpanel#hub-panel{ href: "#", ng: { click: "enterprise.is_primary_producer = false", class: "{selected: enterprise.is_primary_producer == false}" } }
|
||||
%i.ofn-i_063-hub
|
||||
%h4 {{'enterprise.registration.modal.steps.type.no_producer' | t}}
|
||||
%h4= t(".no_producer")
|
||||
|
||||
.row
|
||||
.small-12.columns
|
||||
%input.chunky{ id: 'enterprise_is_primary_producer', name: 'is_primary_producer', hidden: true, required: true, ng: { model: 'enterprise.is_primary_producer' } }
|
||||
%span.error{ ng: { show: "type.is_primary_producer.$error.required && submitted" } }
|
||||
{{'enterprise.registration.modal.steps.type.producer_field_error' | t}}
|
||||
= t(".producer_field_error")
|
||||
.row
|
||||
.small-12.columns
|
||||
.panel.callout
|
||||
.left
|
||||
%i.ofn-i_013-help
|
||||
|
||||
%p {{'enterprise.registration.modal.steps.type.yes_producer_help' | t}}
|
||||
%p= t(".yes_producer_help")
|
||||
.panel.callout
|
||||
.left
|
||||
%i.ofn-i_013-help
|
||||
|
||||
%p {{'enterprise.registration.modal.steps.type.no_producer_help' | t}}
|
||||
%p= t(".no_producer_help")
|
||||
|
||||
.row.buttons
|
||||
.small-12.columns
|
||||
%input.button.secondary{ type: "button", value: "{{'back' | t}}", ng: { click: "select('contact')" } }
|
||||
%input.button.primary.right{ ng: { disabled: 'isDisabled' }, type: "submit", value: "{{'create_profile' | t}}" }
|
||||
%input.button.primary.right{ ng: { disabled: 'isDisabled' }, type: "submit", value: t(".create_profile") }
|
||||
|
||||
@@ -1737,6 +1737,17 @@ See the %{link} to find out more about %{sitename}'s features and to start using
|
||||
registration_greeting: "Greetings!"
|
||||
who_is_managing_enterprise: "Who is responsible for managing %{enterprise}?"
|
||||
update_and_recalculate_fees: "Update And Recalculate Fees"
|
||||
registration:
|
||||
steps:
|
||||
type:
|
||||
headline: "Last step to add %{enterprise}!"
|
||||
question: "Are you a producer?"
|
||||
yes_producer: "Yes, I'm a producer"
|
||||
no_producer: "No, I'm not a producer"
|
||||
producer_field_error: "Please choose one. Are you are producer?"
|
||||
yes_producer_help: "Producers make yummy things to eat and/or drink. You're a producer if you grow it, raise it, brew it, bake it, ferment it, milk it or mould it."
|
||||
no_producer_help: "If you’re not a producer, you’re probably someone who sells and distributes food. You might be a hub, coop, buying group, retailer, wholesaler or other."
|
||||
create_profile: "Create Profile"
|
||||
enterprise:
|
||||
registration:
|
||||
modal:
|
||||
@@ -1775,14 +1786,6 @@ See the %{link} to find out more about %{sitename}'s features and to start using
|
||||
phone_field_placeholder: 'eg. (03) 1234 5678'
|
||||
type:
|
||||
title: 'Type'
|
||||
headline: "Last step to add %{enterprise}!"
|
||||
question: "Are you a producer?"
|
||||
yes_producer: "Yes, I'm a producer"
|
||||
no_producer: "No, I'm not a producer"
|
||||
producer_field_error: "Please choose one. Are you are producer?"
|
||||
yes_producer_help: "Producers make yummy things to eat and/or drink. You're a producer if you grow it, raise it, brew it, bake it, ferment it, milk it or mould it."
|
||||
no_producer_help: "If you’re not a producer, you’re probably someone who sells and distributes food. You might be a hub, coop, buying group, retailer, wholesaler or other."
|
||||
|
||||
about:
|
||||
title: 'About'
|
||||
images:
|
||||
@@ -1823,6 +1826,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using
|
||||
enterprise_about_headline: "Nice one!"
|
||||
enterprise_about_message: "Now let's flesh out the details about"
|
||||
enterprise_success: "Success! %{enterprise} added to the Open Food Network "
|
||||
enterprise_registration_exit_message: "If you exit this wizard at any stage, you can continue to create your profile by going to the admin interface."
|
||||
enterprise_description: "Short Description"
|
||||
enterprise_description_placeholder: "A short sentence describing your enterprise"
|
||||
enterprise_long_desc: "Long Description"
|
||||
@@ -1875,7 +1879,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using
|
||||
registration_type_producer_help: "Producers make yummy things to eat and/or drink. You're a producer if you grow it, raise it, brew it, bake it, ferment it, milk it or mould it."
|
||||
registration_type_no_producer_help: "If you’re not a producer, you’re probably someone who sells and distributes food. You might be a hub, coop, buying group, retailer, wholesaler or other."
|
||||
# END
|
||||
create_profile: "Create Profile"
|
||||
|
||||
registration_images_headline: "Thanks!"
|
||||
registration_images_description: "Let's upload some pretty pictures so your profile looks great! :)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user