From 71e636ff71791bafdc2638d4916c68f5235e957a Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 11 Mar 2012 11:53:28 +0000 Subject: Resourcified auth_sources. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9233 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/auth_sources/edit.html.erb | 2 +- app/views/auth_sources/index.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'app/views') diff --git a/app/views/auth_sources/edit.html.erb b/app/views/auth_sources/edit.html.erb index 87c72724d..f2d76002c 100644 --- a/app/views/auth_sources/edit.html.erb +++ b/app/views/auth_sources/edit.html.erb @@ -1,6 +1,6 @@

<%=l(:label_auth_source)%> (<%= h(@auth_source.auth_method_name) %>)

-<% form_tag({:action => 'update', :id => @auth_source}, :class => "tabular") do %> +<% form_tag({:action => 'update', :id => @auth_source}, :method => :put, :class => "tabular") do %> <%= render :partial => auth_source_partial_name(@auth_source) %> <%= submit_tag l(:button_save) %> <% end %> diff --git a/app/views/auth_sources/index.html.erb b/app/views/auth_sources/index.html.erb index f239184ae..30d3bad7f 100644 --- a/app/views/auth_sources/index.html.erb +++ b/app/views/auth_sources/index.html.erb @@ -22,7 +22,7 @@ <%= link_to l(:button_test), :action => 'test_connection', :id => source %> <%= link_to l(:button_delete), { :action => 'destroy', :id => source }, - :method => :post, + :method => :delete, :confirm => l(:text_are_you_sure), :class => 'icon icon-del', :disabled => source.users.any? %> -- cgit v1.2.3