Contact us page and popup

This commit is contained in:
Godwin
2016-07-09 23:29:46 -07:00
parent c6f8d4ed58
commit 22b7dc2129
15 changed files with 340 additions and 168 deletions
+9
View File
@@ -0,0 +1,9 @@
= form_tag contact_send_path do
= emailfield :email, nil, big: true, required: true unless logged_in?
= contact_reason_select
= textfield :subject, nil, required: true, big: true
= textarea :message, nil, required: true, plain: true
.actions
= button_tag :send, value: :send
- if cancel_btn
%button.close.subdued=_'forms.actions.generic.cancel'
+10
View File
@@ -0,0 +1,10 @@
= render :partial => 'application/header', :locals => {:image_file => @banner_image || 'grafitti.jpg'}
%article
= row do
= columns do
- if @sent
%h2=_'articles.contact.headings.sent', :t
%p=_'articles.contact.paragraphs.sent', :p
- else
%h2=_'articles.contact.headings.contact'
= render 'contact', cancel_btn: false