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:
Arthur Vieira
2022-06-03 19:28:46 -03:00
parent 62ee3c2de1
commit 79e762a815
2 changed files with 6 additions and 0 deletions

View File

@@ -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

View File

@@ -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}!"