Godwin
8 years ago
4 changed files with 65 additions and 63 deletions
@ -1,6 +1,6 @@ |
|||||
= render :partial => 'application/header', :locals => {:image_file => 'parts.jpg'} |
= render :partial => 'application/header', :locals => {:image_file => 'parts.jpg'} |
||||
= row do |
= row do |
||||
= columns(medium: 12) do |
= columns(medium: 12) do |
||||
%p= _'error.500.description', :p |
%p= _'error.500.description', :p |
||||
= render 'contact', cancel_btn: false, contact_reason: :website |
= render 'contact', cancel_btn: false, contact_reason: :website |
||||
|
|
@ -1,14 +1,14 @@ |
|||||
- contact_reason ||= nil |
- contact_reason ||= nil |
||||
- locale ||= nil |
- locale ||= nil |
||||
= form_tag (locale.present? ? contact_send_url : url_for_locale(locale, contact_send_path)), class: 'contact-form' do |
= form_tag (locale.present? ? contact_send_url : url_for_locale(locale, contact_send_path)), class: 'contact-form' do |
||||
= emailfield :email, nil, big: true, required: true unless logged_in? |
= emailfield :email, nil, big: true, required: true unless logged_in? |
||||
- if contact_reason.present? |
- if contact_reason.present? |
||||
= hidden_field_tag :reason, contact_reason |
= hidden_field_tag :reason, contact_reason |
||||
- else |
- else |
||||
= contact_reason_select |
= contact_reason_select |
||||
= textfield :subject, nil, required: true, big: true |
= textfield :subject, nil, required: true, big: true |
||||
= textarea :message, nil, required: true, plain: true |
= textarea :message, nil, required: true, plain: true |
||||
.actions |
.actions |
||||
= button_tag :send, value: :send |
= button_tag :send, value: :send |
||||
- if cancel_btn |
- if cancel_btn |
||||
%button.close.subdued=_'forms.actions.generic.cancel' |
%button.close.subdued=_'forms.actions.generic.cancel' |
||||
|
Loading…
Reference in new issue