mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-09 23:06:06 +00:00
Style and i18n the edit address page
This commit is contained in:
@@ -9,44 +9,44 @@
|
||||
|
||||
%table.no-borders
|
||||
%tr
|
||||
%td
|
||||
Address1
|
||||
%td{style: 'width: 30%'}
|
||||
= t('spree.street_address')
|
||||
%span.required *
|
||||
%td
|
||||
%input{ type: 'text', name: 'address1', required: true, ng: { model: 'address.address1'} }
|
||||
%tr
|
||||
%td
|
||||
Address2
|
||||
= t('spree.street_address_1')
|
||||
%td
|
||||
%input{ type: 'text', name: 'address2', ng: { model: 'address.address2'} }
|
||||
%tr
|
||||
%td
|
||||
Phone
|
||||
= t('spree.phone')
|
||||
%span.required *
|
||||
%td
|
||||
%input{ type: 'text', name: 'phone', required: true, ng: { model: 'address.phone'} }
|
||||
%tr
|
||||
%td
|
||||
City
|
||||
= t('spree.city')
|
||||
%span.required *
|
||||
%td
|
||||
%input{ type: 'text', name: 'city', required: true, ng: { model: 'address.city'} }
|
||||
%tr
|
||||
%td
|
||||
Zipcode
|
||||
= t('spree.zipcode')
|
||||
%span.required *
|
||||
%td
|
||||
%input{ type: 'text', name: 'zipcode', required: true, ng: { model: 'address.zipcode'} }
|
||||
%tr
|
||||
%td
|
||||
Country
|
||||
= t('spree.country')
|
||||
%span.required *
|
||||
%td
|
||||
%select{name: 'country', required: true, ng: {model: 'address.country_id', options: 'country.id as country.name for country in availableCountries'}}
|
||||
%option{value: ''} Select Country
|
||||
%tr
|
||||
%td
|
||||
State
|
||||
= t('spree.state')
|
||||
%span.required *
|
||||
%td
|
||||
%select{name: 'state', required: true, ng: {model: 'address.state_id', options: 'state.id as state.name for state in states'}}
|
||||
|
||||
Reference in New Issue
Block a user