From 6fddb491db162bfdc0acbc3f212f3098a8625fbc Mon Sep 17 00:00:00 2001 From: summerscope Date: Fri, 30 Jan 2015 14:07:55 +1100 Subject: [PATCH] New partial for groups contact --- .../partials/group-contact.html.haml | 98 +++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 app/assets/javascripts/templates/partials/group-contact.html.haml diff --git a/app/assets/javascripts/templates/partials/group-contact.html.haml b/app/assets/javascripts/templates/partials/group-contact.html.haml new file mode 100644 index 0000000000..64774dce2e --- /dev/null +++ b/app/assets/javascripts/templates/partials/group-contact.html.haml @@ -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 + /   \ No newline at end of file