Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - content_for(:title) do
- #{t 'nav.contacts'} - #{t 'nav.company'}
- - content_for(:updated_at) do
- =@updated_at
- %h1= t 'nav.contacts'
- %article#contacts
- %div.column
- -@locations.each do |location|
- %h2=location.city
- %ul.vcard
- %li.org.fn{:style => "display:none"}=t('main.company_full')
- %li.adr.work
- %span.street-address=location.address
- %li.adr.work
- %span.postal-code=location.post_code
- %span.locality=location.city
- %span.country-name{:style => "display:none"}=location.country
- %li
- %span.field_name=t('vcard.phone')
- %a.tel.work{:href => "tel:#{location.phone}"}=phone_format(location.phone)
- %li.tel.work
- %span.field_name.type="Fax"
- %a.tel.work{:href => "tel:#{location.fax}"}=phone_format(location.fax)
- %li
- %span.field_name=t('vcard.email')
- %a.email{:href => "mailto:#{location.email}"}=location.email
- %div.column
- %h2="form.contact.header"
- -form_tag '/contacts', :class => 'contact-form', :id => "contact-form", :method => 'post' do
- %ul.mail
- %li=text_field_tag :name, :placeholder => t('contact.name')
- %li=text_field_tag :email,:placeholder => t('contact.email')
- %li=text_area_tag :body,:placeholder => t('contact.body')
- %li=submit_tag t("contact.send")
- ~
Add Comment
Please, Sign In to add comment