mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-15 04:14:24 +00:00
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.
30 lines
1022 B
Plaintext
30 lines
1022 B
Plaintext
.row
|
|
.alpha.three.columns
|
|
= f.label :contact_name, t('.name')
|
|
.omega.eight.columns
|
|
= f.text_field :contact_name, { placeholder: t('.name_placeholder') }
|
|
.row
|
|
.alpha.three.columns
|
|
= f.label :email_address, t('.email_address')
|
|
%div{'ofn-with-tip' => t('.email_address_tip')}
|
|
%a= t('admin.whats_this')
|
|
.omega.eight.columns
|
|
= f.text_field :email_address, { placeholder: t('.email_address_placeholder') }
|
|
.row
|
|
.alpha.three.columns
|
|
= 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')
|
|
.omega.eight.columns
|
|
= f.text_field :website, { placeholder: t('.website_placeholder') }
|