mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-04 22:16:08 +00:00
47 lines
2.8 KiB
Plaintext
47 lines
2.8 KiB
Plaintext
.container#registration-contact
|
|
%ng-include{ src: "'registration/steps.html'" }
|
|
.row
|
|
.small-12.columns
|
|
%header
|
|
%h2 {{'registration_greeting' | t}}
|
|
%h5{ "ng-bind" => "'who_is_managing_enterprise' | t:{enterprise: enterprise.name}" }
|
|
|
|
%form{ name: 'contact', novalidate: true, ng: { controller: "RegistrationFormCtrl", submit: "selectIfValid('type',contact)" } }
|
|
.row.content
|
|
.small-12.medium-12.large-7.columns
|
|
.row
|
|
.small-12.columns.field
|
|
%label{ for: 'enterprise_contact' } {{'enterprise_contact' | t}}:
|
|
%input.chunky.small-12.columns{ id: 'enterprise_contact', name: 'contact', required: true, placeholder: "Contact Name", ng: { model: 'enterprise.contact' } }
|
|
%span.error.small-12.columns{ ng: { show: "contact.contact.$error.required && submitted" } }
|
|
{{'enterprise_contact_required' | t}}
|
|
.row
|
|
.small-12.columns.field
|
|
%label{ for: 'enterprise_email' } {{'enterprise_email' | t}}:
|
|
%input.chunky.small-12.columns{ id: 'enterprise_email', name: 'email', type: 'email', required: true, placeholder: "eg. charlie@thefarm.com", ng: { model: 'enterprise.email' } }
|
|
%span.error.small-12.columns{ ng: { show: "(contact.email.$error.email || contact.email.$error.required) && submitted" } }
|
|
{{'enterprise_email_required' | t}}
|
|
.row
|
|
.small-12.columns.field
|
|
%label{ for: 'enterprise_phone' } {{'enterprise_phone' | t}}:
|
|
%input.chunky.small-12.columns{ id: 'enterprise_phone', name: 'phone', placeholder: "eg. (03) 1234 5678", ng: { model: 'enterprise.phone' } }
|
|
.small-12.medium-12.large-5.hide-for-small-only
|
|
/ %h6
|
|
/ Contact display
|
|
/ %i.ofn-i_013-help.has-tip{ 'data-tooltip' => true, title: "Choose how you want to display your contact details on the Open Food Network."}
|
|
/ .row
|
|
/ .small-12.columns
|
|
/ %label.indent-checkbox
|
|
/ %input{ type: 'checkbox', id: 'contact_name_profile', ng: { model: 'enterprise.name_in_profile' } } Display name in profile
|
|
/ .small-12.columns
|
|
/ %label.indent-checkbox
|
|
/ %input{ type: 'checkbox', id: 'contact_email_profile', ng: { model: 'enterprise.email_in_profile' } } Display email in profile
|
|
/ .small-12.columns
|
|
/ %label.indent-checkbox
|
|
/ %input{ type: 'checkbox', id: 'contact_phone_profile', ng: { model: 'enterprise.phone_in_profile' } } Display phone in profile
|
|
|
|
.row.buttons
|
|
.small-12.columns
|
|
%input.button.secondary{ type: "button", value: "{{'back' | t}}", ng: { click: "select('details')" } }
|
|
%input.button.primary.right{ type: "submit", value: "{{'continue' | t}}" }
|