BikeBikeBike/app/views/application/_contact.html.haml

15 lines
596 B
Plaintext
Raw Normal View History

2016-07-19 19:01:11 -07:00
- contact_reason ||= nil
2016-07-19 19:16:15 -07:00
- locale ||= nil
2016-08-08 14:55:41 +00:00
= form_tag (locale.present? ? contact_send_url : url_for_locale(locale, contact_send_path)), class: 'contact-form' do
2016-12-11 21:30:08 -08:00
= emailfield :email, nil, big: true, required: true unless logged_in?
- if contact_reason.present?
= hidden_field_tag :reason, contact_reason
- else
= contact_reason_select
= textfield :subject, nil, required: true, big: true
= textarea :message, nil, required: true, plain: true
.actions
2017-04-09 11:37:16 -07:00
= button :send, value: :send
2016-12-11 21:30:08 -08:00
- if cancel_btn
%button.close.subdued=_'forms.actions.generic.cancel'