Sha256: 3087afc6bc1deb5ecdcffa2db7ab7093ac60e1ff09ed3d21e262f9d3a0115567

Contents?: true

Size: 839 Bytes

Versions: 17

Compression:

Stored size: 839 Bytes

Contents

= content_for :head do
  = javascript_include_tag 'jquery-validate/jquery.validate.pack'

:javascript
  $(function(){
  $('form').validate();
  });

= form_for @feedback do |f|
  -if @feedback.errors.any?
    #errorExplanation
      %h2= "#{pluralize(@feedback.errors.count, "error")} prohibited this feedback from being saved:"
      %ul
        - @feedback.errors.full_messages.each do |msg|
          %li= msg

  .field
    = f.label :name
    = f.text_field :name
  .field
    = f.label :phone
    = f.text_field :phone
  .field
    = f.label :email
    = f.text_field :email
  .field
    = f.label :subject
    = f.text_field :subject
  .field
    = label_tag "Want a response?"
    = f.check_box(:want_response)
  .field
    .text_area
      = f.label :message
      = f.text_area :message
  .actions
    = f.submit 'Send feedback'

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
wheels-0.1.30 app/views/feedbacks/_form.html.haml
wheels-0.1.28 app/views/feedbacks/_form.html.haml
wheels-0.1.27 app/views/feedbacks/_form.html.haml
wheels-0.1.25 app/views/feedbacks/_form.html.haml
wheels-0.1.24 app/views/feedbacks/_form.html.haml
wheels-0.1.23 app/views/feedbacks/_form.html.haml
wheels-0.1.22 app/views/feedbacks/_form.html.haml
wheels-0.1.21 app/views/feedbacks/_form.html.haml
wheels-0.1.20 app/views/feedbacks/_form.html.haml
wheels-0.1.19 app/views/feedbacks/_form.html.haml
wheels-0.1.18 app/views/feedbacks/_form.html.haml
wheels-0.1.17 app/views/feedbacks/_form.html.haml
wheels-0.1.16 app/views/feedbacks/_form.html.haml
wheels-0.1.15 app/views/feedbacks/_form.html.haml
wheels-0.1.14 app/views/feedbacks/_form.html.haml
wheels-0.1.13 app/views/feedbacks/_form.html.haml
wheels-0.1.12 app/views/feedbacks/_form.html.haml