Sha256: 012e6d1b3afd495ede8a825b8907ce48689d2074dbac1721a0111cebcebaf02b

Contents?: true

Size: 763 Bytes

Versions: 16

Compression:

Stored size: 763 Bytes

Contents

<% name = '' if !defined?(name) %>
<% if @comment.nil? %>
  <% @comment = Comment.new %>
  <% submit_url = dm_core.admin_comments_path(commenter_type: commenting_on.class, commenter_id: commenting_on, name: name) %>
<% else %>
  <% submit_url = dm_core.admin_comment_path(@comment) %>
<% end %>

<%= simple_form_for @comment, url: submit_url, remote: true,
                     html: { class: 'form-horizontal' }, wrapper: :bs3_vertical_form, wrapper_mappings: DmAdmin::FormWrapperMappings do |f| %>
  <%#--- making sure token is here for when form created by ajax %>
  <%= hidden_field_tag :authenticity_token, form_authenticity_token %>
  <%= f.input :body, as: :text, label: 'Comment', input_html: {rows: 5} %>
  <%= submit_or_cancel cancel: false %>
<% end %>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dm_core-4.2.3.10 app/views/dm_core/admin/comments/_comment_form.html.erb
dm_core-4.2.3.9 app/views/dm_core/admin/comments/_comment_form.html.erb
dm_core-4.2.3.8 app/views/dm_core/admin/comments/_comment_form.html.erb
dm_core-4.2.3.7 app/views/dm_core/admin/comments/_comment_form.html.erb
dm_core-4.2.3.6 app/views/dm_core/admin/comments/_comment_form.html.erb
dm_core-4.2.3.5 app/views/dm_core/admin/comments/_comment_form.html.erb
dm_core-4.2.3.4 app/views/dm_core/admin/comments/_comment_form.html.erb
dm_core-4.2.3.3 app/views/dm_core/admin/comments/_comment_form.html.erb
dm_core-4.2.3.2 app/views/dm_core/admin/comments/_comment_form.html.erb
dm_core-4.2.3.1 app/views/dm_core/admin/comments/_comment_form.html.erb
dm_core-4.2.3 app/views/dm_core/admin/comments/_comment_form.html.erb
dm_core-4.2.2.3 app/views/dm_core/admin/comments/_comment_form.html.erb
dm_core-4.2.2.2 app/views/dm_core/admin/comments/_comment_form.html.erb
dm_core-4.2.2.1 app/views/dm_core/admin/comments/_comment_form.html.erb
dm_core-4.2.2 app/views/dm_core/admin/comments/_comment_form.html.erb
dm_core-4.2.1.5 app/views/dm_core/admin/comments/_comment_form.html.erb