Sha256: 6102c7fc3b2e7cb37e806bf426399e902a8fc37732391780f36f9ecb6463ae94

Contents?: true

Size: 1.08 KB

Versions: 2

Compression:

Stored size: 1.08 KB

Contents

<% 
form_id = "#{parent.dom_id}_comment_form"
mce_id = "#{parent.dom_id}_comment"
message_container_id = "#{@project.dom_id}_message_container"
message_id = "#{@project.dom_id}_message"
-%>
<div id="<%= message_container_id %>" class="help-box" style="display:none;">
  <div id="flashMessage" class="message">
    <div id="<%= message_id %>" class="notice message"></div>
  </div>
</div>
<div id="<%= parent.dom_id %>_new_comment" class="comment-form-wrapper">
  <% form_for(:comment, :url => new_comment_path_with_parent(parent), :html => { :id => form_id, :class => "comment-form"} ) do |f| -%>
    <%= f.text_area :body, :class => 'mceEditor min', :id => mce_id %>
    <%= hidden_field_tag :parent_comment_id, comment.id unless comment.blank? -%>
    <%= hidden_field_tag :render_new, render_new -%>
    <%= f.submit t('muck.comments.add_comment_button'), :class => "button #{comment_button_class}", :id => "comment_submit_#{parent.dom_id}" %>
  <% end -%>
</div>
<%= tiny_mce_scripts(:form_id => form_id, :mce_id => mce_id, :message_container_id => message_container_id, :message_id => message_id) -%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
muck-comments-0.1.17 app/views/comments/_tiny_mce_form.html.erb
muck-comments-0.1.16 app/views/comments/_tiny_mce_form.html.erb