aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/admin_general/index.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin_general/index.html.erb')
-rw-r--r--app/views/admin_general/index.html.erb16
1 files changed, 8 insertions, 8 deletions
diff --git a/app/views/admin_general/index.html.erb b/app/views/admin_general/index.html.erb
index ba9396ceb..ba0563bb6 100644
--- a/app/views/admin_general/index.html.erb
+++ b/app/views/admin_general/index.html.erb
@@ -37,9 +37,9 @@
<tr>
<td>
<% if message.get_body_for_quoting.strip.size == 0 %>
- <%= link_to "(no body)", admin_request_show_raw_email_path(message.raw_email_id) %>
+ <%= link_to "(no body)", admin_raw_email_path(message.raw_email_id) %>
<% else %>
- <%= link_to excerpt(message.get_body_for_quoting, "", :radius => 60), admin_request_show_raw_email_path(message.raw_email_id) %>
+ <%= link_to excerpt(message.get_body_for_quoting, "", :radius => 60), admin_raw_email_path(message.raw_email_id) %>
<% end %>
</td>
<td class="span2">
@@ -183,10 +183,10 @@
<div id="new-authorities" class="accordion-body collapse">
<% for @change_request in @new_body_requests %>
<%= render :partial => 'change_request_summary'%>
- <%= form_tag admin_change_request_update_path(@change_request), :class => "form form-horizontal" do %>
+ <%= form_tag admin_change_request_path(@change_request), :method => 'put', :class => "form form-horizontal" do %>
<%= submit_tag 'Close', :class => "btn btn-danger" %>
- <%= link_to("Close and respond", admin_change_request_edit_path(@change_request), :class => 'btn') %>
- <%= link_to("Add authority", admin_body_new_path(:change_request_id => @change_request.id), :class => 'btn btn-primary') %>
+ <%= link_to("Close and respond", edit_admin_change_request_path(@change_request), :class => 'btn') %>
+ <%= link_to("Add authority", new_admin_body_path(:change_request_id => @change_request.id), :class => 'btn btn-primary') %>
<% end %>
<% end %>
@@ -202,10 +202,10 @@
<div id="update-authorities" class="accordion-body collapse">
<% for @change_request in @body_update_requests %>
<%= render :partial => 'change_request_summary' %>
- <%= form_tag admin_change_request_update_path(@change_request), :class => "form form-horizontal" do %>
+ <%= form_tag admin_change_request_path(@change_request), :class => "form form-horizontal", :method => 'put' do %>
<%= submit_tag 'Close', :class => "btn btn-danger" %>
- <%= link_to("Close and respond", admin_change_request_edit_path(@change_request), :class => 'btn') %>
- <%= link_to("Make update", admin_body_edit_path(@change_request.public_body, :change_request_id => @change_request.id), :class => 'btn btn-primary') %>
+ <%= link_to("Close and respond", edit_admin_change_request_path(@change_request), :class => 'btn') %>
+ <%= link_to("Make update", edit_admin_body_path(@change_request.public_body, :change_request_id => @change_request.id), :class => 'btn btn-primary') %>
<% end %>
<% end %>
</div>