mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Use proper namespaced translations
... in enterprise registration wizard Type step
This commit is contained in:
@@ -6,9 +6,9 @@
|
||||
.row
|
||||
.small-12.columns
|
||||
%header
|
||||
%h2{ "ng-bind" => "'registration_type_headline' | t:{enterprise: enterprise.name}" }
|
||||
%h2{ "ng-bind" => "'enterprise.registration.modal.steps.type.headline' | t:{enterprise: enterprise.name}" }
|
||||
%h4
|
||||
{{'registration_type_question' | t}}
|
||||
{{'enterprise.registration.modal.steps.type.question' | t}}
|
||||
|
||||
%form{ name: 'type', novalidate: true, ng: { controller: "RegistrationFormCtrl", submit: "create(type)" } }
|
||||
.row#enterprise-types{ 'data-equalizer' => true, ng: { if: "::enterprise.type != 'own'" } }
|
||||
@@ -17,30 +17,30 @@
|
||||
.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 {{'registration_type_producer' | t}}
|
||||
%h4 {{'enterprise.registration.modal.steps.type.yes_producer' | t}}
|
||||
|
||||
.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 {{'registration_type_no_producer' | t}}
|
||||
%h4 {{'enterprise.registration.modal.steps.type.no_producer' | t}}
|
||||
|
||||
.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" } }
|
||||
{{'registration_type_error' | t}}
|
||||
{{'enterprise.registration.modal.steps.type.producer_field_error' | t}}
|
||||
.row
|
||||
.small-12.columns
|
||||
.panel.callout
|
||||
.left
|
||||
%i.ofn-i_013-help
|
||||
|
||||
%p {{'registration_type_producer_help' | t}}
|
||||
%p {{'enterprise.registration.modal.steps.type.yes_producer_help' | t}}
|
||||
.panel.callout
|
||||
.left
|
||||
%i.ofn-i_013-help
|
||||
|
||||
%p {{'registration_type_no_producer_help' | t}}
|
||||
%p {{'enterprise.registration.modal.steps.type.no_producer_help' | t}}
|
||||
|
||||
.row.buttons
|
||||
.small-12.columns
|
||||
|
||||
@@ -1349,6 +1349,14 @@ 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:
|
||||
|
||||
Reference in New Issue
Block a user