Guest User

Untitled

a guest
Jun 17th, 2018
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. - content_for(:title) do
  2. #{t 'nav.contacts'} - #{t 'nav.company'}
  3. - content_for(:updated_at) do
  4. =@updated_at
  5. %h1= t 'nav.contacts'
  6. %article#contacts
  7. %div.column
  8. -@locations.each do |location|
  9. %h2=location.city
  10. %ul.vcard
  11. %li.org.fn{:style => "display:none"}=t('main.company_full')
  12. %li.adr.work
  13. %span.street-address=location.address
  14. %li.adr.work
  15. %span.postal-code=location.post_code
  16. %span.locality=location.city
  17. %span.country-name{:style => "display:none"}=location.country
  18. %li
  19. %span.field_name=t('vcard.phone')
  20. %a.tel.work{:href => "tel:#{location.phone}"}=phone_format(location.phone)
  21. %li.tel.work
  22. %span.field_name.type="Fax"
  23. %a.tel.work{:href => "tel:#{location.fax}"}=phone_format(location.fax)
  24. %li
  25. %span.field_name=t('vcard.email')
  26. %a.email{:href => "mailto:#{location.email}"}=location.email
  27. %div.column
  28. %h2="form.contact.header"
  29. -form_tag '/contacts', :class => 'contact-form', :id => "contact-form", :method => 'post' do
  30. %ul.mail
  31. %li=text_field_tag :name, :placeholder => t('contact.name')
  32. %li=text_field_tag :email,:placeholder => t('contact.email')
  33. %li=text_area_tag :body,:placeholder => t('contact.body')
  34. %li=submit_tag t("contact.send")
  35. ~
Add Comment
Please, Sign In to add comment