##// END OF EJS Templates
Makes 'delete links' the same on admin views....
Jean-Philippe Lang -
r2758:7f4635022f7d
parent child
Show More
@@ -21,8 +21,11
21 21 <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>
22 22 <% end %>
23 23 <td align="center" style="width:15%;"><%= reorder_links('custom_field', {:action => 'edit', :id => custom_field}) %></td>
24 <td align="center">
25 <%= button_to l(:button_delete), { :action => 'destroy', :id => custom_field }, :confirm => l(:text_are_you_sure), :class => "button-small" %>
24 <td class="buttons">
25 <%= link_to(l(:button_delete), { :action => 'destroy', :id => custom_field },
26 :method => :post,
27 :confirm => l(:text_are_you_sure),
28 :class => 'icon icon-del') %>
26 29 </td>
27 30 </tr>
28 31 <% end; reset_cycle %>
@@ -11,8 +11,11
11 11 <td><%= link_to h(enumeration), :action => 'edit', :id => enumeration %></td>
12 12 <td style="width:15%;"><%= image_tag('true.png') if enumeration.is_default? %></td>
13 13 <td style="width:15%;"><%= reorder_links('enumeration', {:action => 'update', :id => enumeration}) %></td>
14 <td align="center" style="width:10%;">
15 <%= link_to l(:button_delete), { :action => 'destroy', :id => enumeration }, :method => :post, :confirm => l(:text_are_you_sure), :class => "icon icon-del" %>
14 <td class="buttons">
15 <%= link_to l(:button_delete), { :action => 'destroy', :id => enumeration },
16 :method => :post,
17 :confirm => l(:text_are_you_sure),
18 :class => 'icon icon-del' %>
16 19 </td>
17 20 </tr>
18 21 <% end %>
@@ -19,8 +19,11
19 19 <td align="center"><%= image_tag 'true.png' if status.is_default? %></td>
20 20 <td align="center"><%= image_tag 'true.png' if status.is_closed? %></td>
21 21 <td align="center" style="width:15%;"><%= reorder_links('issue_status', {:action => 'update', :id => status}) %></td>
22 <td align="center" style="width:10%;">
23 <%= button_to l(:button_delete), { :action => 'destroy', :id => status }, :confirm => l(:text_are_you_sure), :class => "button-small" %>
22 <td class="buttons">
23 <%= link_to(l(:button_delete), { :action => 'destroy', :id => status },
24 :method => :post,
25 :confirm => l(:text_are_you_sure),
26 :class => 'icon icon-del') %>
24 27 </td>
25 28 </tr>
26 29 <% end %>
@@ -19,8 +19,11
19 19 <%= reorder_links('role', {:action => 'edit', :id => role}) %>
20 20 <% end %>
21 21 </td>
22 <td align="center" style="width:10%;">
23 <%= button_to(l(:button_delete), { :action => 'destroy', :id => role }, :confirm => l(:text_are_you_sure), :class => "button-small", :disabled => role.builtin? ) %>
22 <td class="buttons">
23 <%= link_to(l(:button_delete), { :action => 'destroy', :id => role },
24 :method => :post,
25 :confirm => l(:text_are_you_sure),
26 :class => 'icon icon-del') unless role.builtin? %>
24 27 </td>
25 28 </tr>
26 29 <% end %>
@@ -17,8 +17,11
17 17 <td><%= link_to tracker.name, :action => 'edit', :id => tracker %></td>
18 18 <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>
19 19 <td align="center" style="width:15%;"><%= reorder_links('tracker', {:action => 'edit', :id => tracker}) %></td>
20 <td align="center" style="width:10%;">
21 <%= button_to l(:button_delete), { :action => 'destroy', :id => tracker }, :confirm => l(:text_are_you_sure), :class => "button-small" %>
20 <td class="buttons">
21 <%= link_to(l(:button_delete), { :action => 'destroy', :id => tracker },
22 :method => :post,
23 :confirm => l(:text_are_you_sure),
24 :class => 'icon icon-del') %>
22 25 </td>
23 26 </tr>
24 27 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now