diff options
author | Henare Degan <henare.degan@gmail.com> | 2013-02-27 10:34:47 +1100 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2013-02-27 10:34:47 +1100 |
commit | 835b51c1de0d49e652fe9c9a60f0974275de070c (patch) | |
tree | 0d64a841f28654a66556bcc0c0bb1153bae645a2 /app/views/admin_censor_rule/edit.html.erb | |
parent | 77a284d6d088f7aa6d40810d46a39658fc6cf2cd (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.erb | 16 |
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! --> <%= submit_tag "Destroy rule" %> + </p> +<% end %> + |