Sha256: 5775cb3bd2daf41251e6d08de8d51f6e2818e3d774fc5f0bc3144b8ec77dd353
Contents?: true
Size: 1020 Bytes
Versions: 7
Compression:
Stored size: 1020 Bytes
Contents
<% # Clients of this partial must provide the following variables: # comment # # Optionally, they can also supply the following variables: per_page ||= nil thread ||= nil no_remote ||= false %> <% config = comment.thread.config %> <% if comment.errors.any? %> <div class="comment_error_explanation"> <h3><%= t "commontator.comment.errors.#{comment.id.blank? ? 'create' : 'update'}" %></h3> <ul> <% comment.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul> </div> <% end %> <%= form_for([commontator, thread, comment], :remote => !no_remote) do |f| %> <%= hidden_field_tag :per_page, per_page %> <div class="comment_form_field"> <%= f.text_area :body, :rows => '7' %> </div> <div class="comment_form_actions"> <%= f.submit t("commontator.comment.actions.#{comment.id.blank? ? 'create' : 'update'}") %> <%= f.submit t('commontator.comment.actions.cancel'), :name => 'cancel' %> </div> <% end %>
Version data entries
7 entries across 7 versions & 1 rubygems