Splitting contact and social into two separate partials

This commit is contained in:
Rob Harrington
2014-11-28 12:57:09 +11:00
parent b10d623f26
commit eb2a6f0ef5
4 changed files with 33 additions and 29 deletions

View File

@@ -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"}
]

View File

@@ -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

View File

@@ -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"}

View 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" }