aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/admin_censor_rule/edit.html.erb
diff options
context:
space:
mode:
authorHenare Degan <henare.degan@gmail.com>2013-02-27 10:34:47 +1100
committerHenare Degan <henare.degan@gmail.com>2013-02-27 10:34:47 +1100
commit835b51c1de0d49e652fe9c9a60f0974275de070c (patch)
tree0d64a841f28654a66556bcc0c0bb1153bae645a2 /app/views/admin_censor_rule/edit.html.erb
parent77a284d6d088f7aa6d40810d46a39658fc6cf2cd (diff)
Rename ALL THE TEMPLATES!!1!!!one!!1!!
.rhtml is deprecated in favour of .erb in Rails 3
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 %>
+