#369: updated UI for contacts

This commit is contained in:
Vokhmin Alexey V 2014-11-14 03:05:22 +03:00
parent 7c3ed1a5d2
commit 6dc75e264d
4 changed files with 36 additions and 56 deletions

View File

@ -1,48 +0,0 @@
- set_meta_tags title: t('layout.contact.page_header')
%h1= t("layout.contact.header")
%p= t("layout.contact.subheader")
%hr.bootstrap
.inner-columns.equal
%section.first
%div
= form_for @form, url: contact_path, html: {class: 'inline_errors'} do |f|
%dl.form
%dt= f.label :name, t("activerecord.attributes.user.name")
%dd
= f.text_field :name, placeholder: t("layout.contact.placeholders.name"),
class: @form.errors.messages[:name].present? ? 'error' : ''
%dl.form
%dt= f.label :email, t("activerecord.attributes.user.email")
%dd
= f.text_field :email, placeholder: t("layout.contact.placeholders.email"),
class: @form.errors.messages[:email].present? ? 'error' : ''
%dl.form
%dt= f.label :subject, t("layout.contact.subject")
%dd
= f.text_field :subject, placeholder: t("layout.contact.placeholders.subject"),
class: @form.errors.messages[:subject].present? ? 'error' : ''
%dl.form
%dt= f.label :message, t("layout.contact.message")
%dd
= f.text_area :message, placeholder: t("layout.contact.placeholders.message"),
class: @form.errors.messages[:message].present? ? 'error' : ''
.form-actions
= f.submit t('layout.contact.send_request'), class: 'button', data: {'disable-with' => t('layout.processing')}
%section.last
%div
%h3= t("layout.contact.info.header")
%ul.checklist
- t("layout.contact.info.items").try(:each) do |item|
%li= item
%hr.bootstrap
%p= t("layout.contact.questions_info")

View File

@ -0,0 +1,27 @@
- set_meta_tags title: t('layout.contact.page_header')
.row
.col-md-10.col-md-offset-1
h1= t('layout.contact.header')
p= t('layout.contact.subheader')
hr
.row
.col-md-6
= simple_form_for @form, url: contact_path do |f|
= f.input :name
= f.input :email
= f.input :subject
= f.input :message, as: :text
= f.button :submit, t('layout.contact.send_request')
.col-md-6
h4= t('layout.contact.info.header')
ul
- t("layout.contact.info.items").try(:each) do |item|
li= item
hr
p= t('layout.contact.questions_info')

View File

@ -1,8 +0,0 @@
%h1= t("layout.contact.thanks")
%h2= t("layout.contact.thanks_2")
%p.pages
= t("layout.contact.open_pages")
%p.search
= t("layout.contact.use_search")
.both

View File

@ -0,0 +1,9 @@
.row
.col-md-6.col-md-offset-3.text-center
h1= t('layout.contact.thanks')
h4= t('layout.contact.thanks_2')
p
= link_to t('layout.contact.open_pages'), build_lists_path
p
= link_to t('layout.contact.use_search'), search_index_path