fatfreecrm/fat_free_crm

View on GitHub
app/views/shared/_add_comment.html.haml

Summary

Maintainability
Test Coverage
- edit ||= false
- collapsed = @comment_body.nil?  && f.object.errors.empty?
= subtitle :comment, collapsed, t(:comment)
.section
  %small#comment_intro{ hidden_if(!collapsed) }
    = t(:comment_intro)
  #campaign_comment{ hidden_if(collapsed) }
    = text_area_tag :comment_body, @comment_body