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