Commit 451ec230 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

replaced some submit buttons by links on projects/settings

git-svn-id: http://redmine.rubyforge.org/svn/trunk@119 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 4c84165a
...@@ -27,11 +27,7 @@ ...@@ -27,11 +27,7 @@
<% end %> <% end %>
</td> </td>
<td> <td>
<% if authorize_for('members', 'destroy') %> <%= link_to_if_authorized l(:button_delete), {:controller => 'members', :action => 'destroy', :id => member}, :confirm => l(:text_are_you_sure), :post => true, :class => 'pic picDelete' %>
<%= start_form_tag :controller => 'members', :action => 'destroy', :id => member %>
<%= submit_tag l(:button_delete), :class => "button-small" %>
<%= end_form_tag %>
<% end %>
</td> </td>
</tr> </tr>
<% end %> <% end %>
...@@ -60,14 +56,9 @@ ...@@ -60,14 +56,9 @@
<td width="100"><strong><%=h version.name %></strong></td> <td width="100"><strong><%=h version.name %></strong></td>
<td width="100"><%= format_date(version.effective_date) %></td> <td width="100"><%= format_date(version.effective_date) %></td>
<td><%=h version.description %></td> <td><%=h version.description %></td>
<td>&nbsp;&nbsp;&nbsp; <td>
<%= link_to_if_authorized l(:button_edit), :controller => 'versions', :action => 'edit', :id => version %> <%= link_to_if_authorized l(:button_edit), { :controller => 'versions', :action => 'edit', :id => version }, :class => 'pic picEdit' %>
<% if authorize_for('versions', 'destroy') %> <%= link_to_if_authorized l(:button_delete), {:controller => 'versions', :action => 'destroy', :id => version}, :confirm => l(:text_are_you_sure), :post => true, :class => 'pic picDelete' %>
&nbsp;
<%= start_form_tag :controller => 'versions', :action => 'destroy', :id => version %>
<%= submit_tag l(:button_delete), :class => "button-small" %>
<%= end_form_tag %>
<% end %>
</td> </td>
</tr> </tr>
<% end %> <% end %>
...@@ -96,11 +87,7 @@ ...@@ -96,11 +87,7 @@
<% end %> <% end %>
</td> </td>
<td> <td>
<% if authorize_for('issue_categories', 'destroy') %> <%= link_to_if_authorized l(:button_delete), {:controller => 'issue_categories', :action => 'destroy', :id => @category}, :confirm => l(:text_are_you_sure), :post => true, :class => 'pic picDelete' %>
<%= start_form_tag :controller => 'issue_categories', :action => 'destroy', :id => @category %>
<%= submit_tag l(:button_delete), :class => "button-small" %>
<%= end_form_tag %>
<% end %>
</td> </td>
</tr> </tr>
<% end %> <% end %>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment