Sha256: 603dc671a9148f1171fd31b5d2c74735142fdfde6722e2881e5e42f82aff53ba

Contents?: true

Size: 881 Bytes

Versions: 3

Compression:

Stored size: 881 Bytes

Contents

%h3
  = link_to t('the_comments.new'), '#', id: :new_root_comment

= form_for Comment.new, remote: true, authenticity_token: true do |f|
  .error_notifier{ style: "display:none" }
  %label= t('the_comments.form.title')
  %p= f.text_field :title

  %label= t('the_comments.form.contacts')
  %p= f.text_field :contacts

  %label= t('the_comments.form.content')
  %p= f.text_area :raw_content

  %p.trap
    - TheComments.config.empty_inputs.each do |name|
      = text_field_tag name, nil, autocomplete: :off, tabindex: -1, id: nil
  
  = hidden_field_tag :tolerance_time, 0, id: nil, class: :tolerance_time

  = f.hidden_field :commentable_type, value: commentable.class
  = f.hidden_field :commentable_id,   value: commentable.id
  = f.hidden_field :parent_id, class: :parent_id

  %p
    = f.submit t('the_comments.form.create'), class: :btn
    = t('the_comments.form.thank_you')

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
the_comments-2.2.2 app/views/the_comments/haml/_form.html.haml
the_comments-2.2.1 app/views/the_comments/haml/_form.html.haml
the_comments-2.2.0 app/views/the_comments/haml/_form.html.haml