implemented javascripts for approval/disapproval/unapproval from post/show page
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<p>You can unapprove a post if you believe it breaks the rules or doesn't belong on this site. You must provide a reason.</p>
|
||||
<%= form_for(@unapproval) do |f| %>
|
||||
<%= form_for(@unapproval, :remote => true, :format => :js) do |f| %>
|
||||
<%= hidden_field_tag "unapproval[post_id]", @unapproval.post_id %>
|
||||
<%= f.text_area :reason, :size => "40x5" %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user