mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-18 04:39:14 +00:00
Add whatsapp number to registration form
Creates a field on the contact step of the enterprise registration form to create an enterprise with a WhatsApp phone number, with corresponding i18n keys for the field's name and placeholder text.
This commit is contained in:
@@ -24,6 +24,10 @@
|
||||
.small-12.columns.field
|
||||
%label{ for: 'enterprise_phone' }= t(".phone_field")+":"
|
||||
%input.chunky.small-12.columns{ id: 'enterprise_phone', name: 'phone', placeholder: "{{'registration.steps.contact.phone_field_placeholder' | t}}", ng: { model: 'enterprise.phone' } }
|
||||
.row
|
||||
.small-12.columns.field
|
||||
%label{ "for" => 'enterprise_whatsapp_phone', 'data-toggle' => "tooltip", 'title' => "Disabled tooltip" }= t(".whatsapp_phone_field")+":"
|
||||
%input.chunky.small-12.columns{ id: 'enterprise_whatsapp_phone', name: 'whatsapp_phone', placeholder: "{{'registration.steps.contact.whatsapp_phone_field_placeholder' | t}}", ng: { model: 'enterprise.whatsapp_phone' } }
|
||||
.small-12.medium-12.large-5.hide-for-small-only
|
||||
|
||||
.row.buttons
|
||||
|
||||
@@ -2336,7 +2336,9 @@ See the %{link} to find out more about %{sitename}'s features and to start using
|
||||
contact_field_placeholder: "Contact Name"
|
||||
contact_field_required: "You need to enter a primary contact."
|
||||
phone_field: "Phone number"
|
||||
whatsapp_phone_field: "WhatsApp phone number"
|
||||
phone_field_placeholder: "eg. (03) 1234 5678"
|
||||
whatsapp_phone_field_placeholder: "eg. +61 4 1234 5678"
|
||||
type:
|
||||
title: "Type"
|
||||
headline: "Last step to add %{enterprise}!"
|
||||
|
||||
Reference in New Issue
Block a user