Fix whatsapp phone tooltip in registration

The tooltip on the contact step of the registration form now displays
the proper text, which has been added in the source language file.
This commit is contained in:
Arthur Vieira
2022-06-08 15:14:57 -03:00
parent 0deb3cd782
commit e483ef8ccd
2 changed files with 2 additions and 1 deletions

View File

@@ -26,7 +26,7 @@
%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")+":"
%label{ "for" => 'enterprise_whatsapp_phone', 'data-toggle' => "tooltip", 'title' => "{{'registration.steps.contact.whatsapp_phone_tooltip' | t}}" }= 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

View File

@@ -2337,6 +2337,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using
contact_field_required: "You need to enter a primary contact."
phone_field: "Phone number"
whatsapp_phone_field: "WhatsApp phone number"
whatsapp_phone_tooltip: "This number will be displayed in your public profile to be opened as a WhatsApp link."
phone_field_placeholder: "eg. (03) 1234 5678"
whatsapp_phone_field_placeholder: "eg. +61 4 1234 5678"
type: