Sha256: 33735a9a2188bed28e0569e41f388cc630dc8aab27fd50eb33e60a1795037e55

Contents?: true

Size: 839 Bytes

Versions: 11

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
    = f.label :message
    = f.text_area :message
  .field
    = label_tag "Would you like to hear back from us?"
    = f.check_box :want_response
  .actions
    = f.submit 'Send feedback'

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
wheels-0.1.9 app/views/feedbacks/_form.html.haml
wheels-0.1.8 app/views/feedbacks/_form.html.haml
wheels-0.1.7 app/views/feedbacks/_form.html.haml
wheels-0.1.6 app/views/feedbacks/_form.html.haml
wheels-0.1.5 app/views/feedbacks/_form.html.haml
wheels-0.1.4 app/views/feedbacks/_form.html.haml
wheels-0.1.3 app/views/feedbacks/_form.html.haml
wheels-0.1.2 app/views/feedbacks/_form.html.haml
wheels-0.1.1 app/views/feedbacks/_form.html.haml
wheels-0.1.0 app/views/feedbacks/_form.html.haml
wheels-0.0.49 app/views/feedbacks/_form.html.haml