mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-31 21:37:16 +00:00
New partial for groups contact
This commit is contained in:
@@ -0,0 +1,98 @@
|
||||
%div.contact-container{bindonce: true}
|
||||
%p test 123
|
||||
|
||||
/ - if "@group.email || @group.website || @group.phone"
|
||||
%div.modal-centered
|
||||
%p.modal-header Contact
|
||||
%p
|
||||
/ = @group.phone
|
||||
|
||||
|
||||
/ %p.word-wrap{"ng-if" => "enterprise.email"}
|
||||
/ %a{"ng-href" => "{{enterprise.email | stripUrl}}", target: "_blank", mailto: true}
|
||||
/ %span.email
|
||||
/ {{ enterprise.email | stripUrl }}
|
||||
|
||||
/ %p.word-wrap{"ng-if" => "enterprise.website"}
|
||||
/ %a{"ng-href" => "http://{{enterprise.website | stripUrl}}", target: "_blank" }
|
||||
/ {{ enterprise.website | stripUrl }}
|
||||
|
||||
|
||||
/ %h4 Contact us
|
||||
/ - if @group.phone
|
||||
/ .row
|
||||
/ .small-2.columns
|
||||
/ Call
|
||||
/ .small-10.columns
|
||||
/ = @group.phone
|
||||
/ - if @group.email
|
||||
/ .row
|
||||
/ .small-2.columns
|
||||
/ Email
|
||||
/ .small-10.columns
|
||||
/ = @group.email
|
||||
/ - if @group.website
|
||||
/ .row
|
||||
/ .small-2.columns
|
||||
/ Website
|
||||
/ .small-10.columns
|
||||
/ = @group.website
|
||||
/ %p
|
||||
/ %h6 Address
|
||||
/ %p
|
||||
/ = @group.address.address1
|
||||
/ - if @group.address.address2
|
||||
/ %br
|
||||
/ = @group.address.address2
|
||||
/ %br
|
||||
/ = @group.address.city
|
||||
/ ,
|
||||
/ = @group.address.state
|
||||
/ = @group.address.zipcode
|
||||
/ %br
|
||||
/ = @group.address.country
|
||||
/ %p
|
||||
/ %h6 Follow us
|
||||
/ - if @group.facebook
|
||||
/ .row
|
||||
/ .small-2.columns
|
||||
/ Facebook
|
||||
/ .small-10.columns
|
||||
/ = @group.facebook
|
||||
/ - if @group.instagram
|
||||
/ .row
|
||||
/ .small-2.columns
|
||||
/ Instagram
|
||||
/ .small-10.columns
|
||||
/ = @group.instagram
|
||||
/ - if @group.linkedin
|
||||
/ .row
|
||||
/ .small-2.columns
|
||||
/ LinkedIn
|
||||
/ .small-10.columns
|
||||
/ = @group.linkedin
|
||||
/ - if @group.twitter
|
||||
/ .row
|
||||
/ .small-2.columns
|
||||
/ Twitter
|
||||
/ .small-10.columns
|
||||
/ = @group.twitter
|
||||
|
||||
/ .small-12.columns.pad-top
|
||||
/ .row.pad-top
|
||||
/ .small-12.columns.text-center.small
|
||||
/ %hr
|
||||
/ Copyright this year
|
||||
/ = @group.name
|
||||
/ %p
|
||||
/ -if @group.facebook
|
||||
/ %a{title:'Follow us on Facebook', href: 'https://www.facebook.com/' + @group.facebook, target: '_blank'}
|
||||
/ %i.ofn-i_044-facebook
|
||||
/ -if @group.email
|
||||
/ %a{title:'Email us', href: @group.email.reverse, mailto: true}
|
||||
/ %i.ofn-i_050-mail-circle
|
||||
/ -if @group.website
|
||||
/ %a{title:'Visit our website', href: 'http://' + @group.website, target: '_blank'}
|
||||
/ %i.ofn-i_049-web
|
||||
/ %p
|
||||
/
|
||||
Reference in New Issue
Block a user