Sha256: ad057200c89a96c821a681affad0fb37e4e315f894eab9ff52582e35ff0f4937

Contents?: true

Size: 605 Bytes

Versions: 19

Compression:

Stored size: 605 Bytes

Contents

- class_name = commentable.class.name.underscore
.comment{:style => "margin: 5px 0px 0px 0px"}
  = link_to avatar_for(current_user, :size => :small), user_path(current_user)
  = form_for(@comment, :remote => true) do |f|
    = hidden_field_tag "comment[commentable_id]", commentable.id
    = hidden_field_tag "comment[commentable_type]", class_name.classify
    = f.text_area :comment, :id => dom_id(@comment, :text)
    .buttons
      = f.submit t(:save_note)
      #{t :or}
      = link_to(t(:cancel), edit_comment_path(@comment, "#{class_name}_id" => commentable.id, :cancel => true), :remote => true)

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 app/views/comments/_edit.html.haml
fat_free_crm-0.15.2 app/views/comments/_edit.html.haml
fat_free_crm-0.16.4 app/views/comments/_edit.html.haml
fat_free_crm-0.14.1 app/views/comments/_edit.html.haml
fat_free_crm-0.15.1 app/views/comments/_edit.html.haml
fat_free_crm-0.16.3 app/views/comments/_edit.html.haml
fat_free_crm-0.16.2 app/views/comments/_edit.html.haml
fat_free_crm-0.16.1 app/views/comments/_edit.html.haml
fat_free_crm-0.16.0 app/views/comments/_edit.html.haml
fat_free_crm-0.15.0 app/views/comments/_edit.html.haml
fat_free_crm-0.15.0.beta.2 app/views/comments/_edit.html.haml
fat_free_crm-0.15.0.beta app/views/comments/_edit.html.haml
fat_free_crm-0.14.0 app/views/comments/_edit.html.haml
reduced_fat_crm-0.15.0.beta app/views/comments/_edit.html.haml
reduced_fat_crm-0.14.0 app/views/comments/_edit.html.haml
fat_free_crm-0.13.6 app/views/comments/_edit.html.haml
fat_free_crm-0.13.5 app/views/comments/_edit.html.haml
fat_free_crm-0.13.4 app/views/comments/_edit.html.haml
fat_free_crm-0.13.3 app/views/comments/_edit.html.haml