mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-02 21:57:17 +00:00
Add admin view field for whatsapp number
Creates a field and tooltip in /admin/enterprises/<enterprise>/edit#!/contact for updating the enterprise's WhatsApp phone number, with corresponding i18n keys for the name of the field, placeholder and tooltip text.
This commit is contained in:
@@ -15,6 +15,13 @@
|
||||
= f.label :phone, t('.phone')
|
||||
.omega.eight.columns
|
||||
= f.text_field :phone, { placeholder: t('.phone_placeholder') }
|
||||
.row
|
||||
.alpha.three.columns
|
||||
= f.label :whatsapp_phone, t('.whatsapp_phone')
|
||||
%div{'ofn-with-tip' => t('.whatsapp_phone_tip')}
|
||||
%a= t('admin.whats_this')
|
||||
.omega.eight.columns
|
||||
= f.text_field :whatsapp_phone, { placeholder: t('.whatsapp_phone_placeholder') }
|
||||
.row
|
||||
.alpha.three.columns
|
||||
= f.label :website, t('.website')
|
||||
|
||||
@@ -888,6 +888,9 @@ en:
|
||||
email_address_tip: "This email address will be displayed in your public profile"
|
||||
phone: Phone
|
||||
phone_placeholder: eg. 98 7654 3210
|
||||
whatsapp_phone: WhatsApp phone number
|
||||
whatsapp_phone_placeholder: eg. +61 4 9876 5432
|
||||
whatsapp_phone_tip: "This number will be displayed in your public profile to be opened as a WhatsApp link."
|
||||
website: Website
|
||||
website_placeholder: eg. www.truffles.com
|
||||
enterprise_fees:
|
||||
|
||||
Reference in New Issue
Block a user