aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/admin_censor_rule/edit.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin_censor_rule/edit.html.erb')
-rw-r--r--app/views/admin_censor_rule/edit.html.erb16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/views/admin_censor_rule/edit.html.erb b/app/views/admin_censor_rule/edit.html.erb
new file mode 100644
index 000000000..844908418
--- /dev/null
+++ b/app/views/admin_censor_rule/edit.html.erb
@@ -0,0 +1,16 @@
+<% @title = 'Edit censor rule' %>
+
+<h1><%=@title%></h1>
+
+<%= form_tag '../update/' + @censor_rule.id.to_s do %>
+ <%= render :partial => 'form', :locals => { :info_request => @censor_rule.info_request, :user => @censor_rule.user } %>
+ <p><%= submit_tag 'Save', :accesskey => 's' %></p>
+<% end %>
+
+<%= form_tag('../destroy/' + @censor_rule.id.to_s) do %>
+ <p>
+ <%= hidden_field_tag(:censor_rule_id, @censor_rule.id) %>
+ Permanent! --&gt; <%= submit_tag "Destroy rule" %>
+ </p>
+<% end %>
+