mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Splitting contact and social into two separate partials
This commit is contained in:
@@ -7,13 +7,14 @@ angular.module("admin.enterprises")
|
||||
SideMenu.setItems [
|
||||
{ name: 'Primary Details' }
|
||||
{ name: 'Address' }
|
||||
{ name: "Shipping Methods"}
|
||||
{ name: "Payment Methods"}
|
||||
{ name: "Enterprise Fees"}
|
||||
{ name: 'Contact & Social' }
|
||||
{ name: 'Contact' }
|
||||
{ name: 'Social' }
|
||||
{ name: 'About' }
|
||||
{ name: "Business Details"}
|
||||
{ name: 'Images' }
|
||||
{ name: "Shipping Methods"}
|
||||
{ name: "Payment Methods"}
|
||||
{ name: "Enterprise Fees"}
|
||||
{ name: "Preferences"}
|
||||
]
|
||||
|
||||
|
||||
@@ -7,9 +7,13 @@
|
||||
%legend Address
|
||||
= render 'admin/enterprises/form/address', af: af
|
||||
|
||||
%fieldset.alpha.no-border-bottom{ ng: { show: "menu.selected.name=='Contact & Social'" } }
|
||||
%legend Contact & Social
|
||||
= render 'admin/enterprises/form/contact_and_social', f: f
|
||||
%fieldset.alpha.no-border-bottom{ ng: { show: "menu.selected.name=='Contact'" } }
|
||||
%legend Contact
|
||||
= render 'admin/enterprises/form/contact', f: f
|
||||
|
||||
%fieldset.alpha.no-border-bottom{ ng: { show: "menu.selected.name=='Social'" } }
|
||||
%legend Social
|
||||
= render 'admin/enterprises/form/social', f: f
|
||||
|
||||
%fieldset.alpha.no-border-bottom{ ng: { show: "menu.selected.name=='Business Details'" } }
|
||||
%legend Business Details
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
|
||||
.omega.eight.columns
|
||||
Note: A new email address may need to be confirmed prior to use
|
||||
|
||||
.row
|
||||
.alpha.three.columns
|
||||
= f.label :phone
|
||||
@@ -31,24 +30,4 @@
|
||||
.alpha.three.columns
|
||||
= f.label :website
|
||||
.omega.eight.columns
|
||||
= f.text_field :website, { placeholder: "eg. www.truffles.com"}
|
||||
.row
|
||||
.alpha.three.columns
|
||||
= f.label :facebook, 'Facebook'
|
||||
.omega.eight.columns
|
||||
= f.text_field :facebook
|
||||
.row
|
||||
.alpha.three.columns
|
||||
= f.label :instagram, 'Instagram'
|
||||
.omega.eight.columns
|
||||
= f.text_field :instagram
|
||||
.row
|
||||
.alpha.three.columns
|
||||
= f.label :linkedin, 'LinkedIn'
|
||||
.omega.eight.columns
|
||||
= f.text_field :linkedin
|
||||
.row
|
||||
.alpha.three.columns
|
||||
= f.label :twitter
|
||||
.omega.eight.columns
|
||||
= f.text_field :twitter, { placeholder: "eg. @the_prof" }
|
||||
= f.text_field :website, { placeholder: "eg. www.truffles.com"}
|
||||
20
app/views/admin/enterprises/form/_social.html.haml
Normal file
20
app/views/admin/enterprises/form/_social.html.haml
Normal file
@@ -0,0 +1,20 @@
|
||||
.row
|
||||
.alpha.three.columns
|
||||
= f.label :facebook, 'Facebook'
|
||||
.omega.eight.columns
|
||||
= f.text_field :facebook
|
||||
.row
|
||||
.alpha.three.columns
|
||||
= f.label :instagram, 'Instagram'
|
||||
.omega.eight.columns
|
||||
= f.text_field :instagram
|
||||
.row
|
||||
.alpha.three.columns
|
||||
= f.label :linkedin, 'LinkedIn'
|
||||
.omega.eight.columns
|
||||
= f.text_field :linkedin
|
||||
.row
|
||||
.alpha.three.columns
|
||||
= f.label :twitter
|
||||
.omega.eight.columns
|
||||
= f.text_field :twitter, { placeholder: "eg. @the_prof" }
|
||||
Reference in New Issue
Block a user