Commit 7f463502 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Makes 'delete links' the same on admin views.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2872 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent ede99604
......@@ -21,8 +21,11 @@
<td align="center"><%= l(:label_x_projects, :count => custom_field.projects.count) if custom_field.is_a? IssueCustomField and !custom_field.is_for_all? %></td>
<% end %>
<td align="center" style="width:15%;"><%= reorder_links('custom_field', {:action => 'edit', :id => custom_field}) %></td>
<td align="center">
<%= button_to l(:button_delete), { :action => 'destroy', :id => custom_field }, :confirm => l(:text_are_you_sure), :class => "button-small" %>
<td class="buttons">
<%= link_to(l(:button_delete), { :action => 'destroy', :id => custom_field },
:method => :post,
:confirm => l(:text_are_you_sure),
:class => 'icon icon-del') %>
</td>
</tr>
<% end; reset_cycle %>
......
......@@ -11,8 +11,11 @@
<td><%= link_to h(enumeration), :action => 'edit', :id => enumeration %></td>
<td style="width:15%;"><%= image_tag('true.png') if enumeration.is_default? %></td>
<td style="width:15%;"><%= reorder_links('enumeration', {:action => 'update', :id => enumeration}) %></td>
<td align="center" style="width:10%;">
<%= link_to l(:button_delete), { :action => 'destroy', :id => enumeration }, :method => :post, :confirm => l(:text_are_you_sure), :class => "icon icon-del" %>
<td class="buttons">
<%= link_to l(:button_delete), { :action => 'destroy', :id => enumeration },
:method => :post,
:confirm => l(:text_are_you_sure),
:class => 'icon icon-del' %>
</td>
</tr>
<% end %>
......
......@@ -19,8 +19,11 @@
<td align="center"><%= image_tag 'true.png' if status.is_default? %></td>
<td align="center"><%= image_tag 'true.png' if status.is_closed? %></td>
<td align="center" style="width:15%;"><%= reorder_links('issue_status', {:action => 'update', :id => status}) %></td>
<td align="center" style="width:10%;">
<%= button_to l(:button_delete), { :action => 'destroy', :id => status }, :confirm => l(:text_are_you_sure), :class => "button-small" %>
<td class="buttons">
<%= link_to(l(:button_delete), { :action => 'destroy', :id => status },
:method => :post,
:confirm => l(:text_are_you_sure),
:class => 'icon icon-del') %>
</td>
</tr>
<% end %>
......
......@@ -19,8 +19,11 @@
<%= reorder_links('role', {:action => 'edit', :id => role}) %>
<% end %>
</td>
<td align="center" style="width:10%;">
<%= button_to(l(:button_delete), { :action => 'destroy', :id => role }, :confirm => l(:text_are_you_sure), :class => "button-small", :disabled => role.builtin? ) %>
<td class="buttons">
<%= link_to(l(:button_delete), { :action => 'destroy', :id => role },
:method => :post,
:confirm => l(:text_are_you_sure),
:class => 'icon icon-del') unless role.builtin? %>
</td>
</tr>
<% end %>
......
......@@ -17,8 +17,11 @@
<td><%= link_to tracker.name, :action => 'edit', :id => tracker %></td>
<td align="center"><% unless tracker.workflows.count > 0 %><span class="icon icon-warning"><%= l(:text_tracker_no_workflow) %> (<%= link_to l(:button_edit), {:controller => 'workflows', :action => 'edit', :tracker_id => tracker} %>)</span><% end %></td>
<td align="center" style="width:15%;"><%= reorder_links('tracker', {:action => 'edit', :id => tracker}) %></td>
<td align="center" style="width:10%;">
<%= button_to l(:button_delete), { :action => 'destroy', :id => tracker }, :confirm => l(:text_are_you_sure), :class => "button-small" %>
<td class="buttons">
<%= link_to(l(:button_delete), { :action => 'destroy', :id => tracker },
:method => :post,
:confirm => l(:text_are_you_sure),
:class => 'icon icon-del') %>
</td>
</tr>
<% 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