##// END OF EJS Templates
replaced some submit buttons by links on projects/settings...
Jean-Philippe Lang -
r116:451ec230601e
parent child
Show More
@@ -27,11 +27,7
27 27 <% end %>
28 28 </td>
29 29 <td>
30 <% if authorize_for('members', 'destroy') %>
31 <%= start_form_tag :controller => 'members', :action => 'destroy', :id => member %>
32 <%= submit_tag l(:button_delete), :class => "button-small" %>
33 <%= end_form_tag %>
34 <% end %>
30 <%= link_to_if_authorized l(:button_delete), {:controller => 'members', :action => 'destroy', :id => member}, :confirm => l(:text_are_you_sure), :post => true, :class => 'pic picDelete' %>
35 31 </td>
36 32 </tr>
37 33 <% end %>
@@ -60,14 +56,9
60 56 <td width="100"><strong><%=h version.name %></strong></td>
61 57 <td width="100"><%= format_date(version.effective_date) %></td>
62 58 <td><%=h version.description %></td>
63 <td>&nbsp;&nbsp;&nbsp;
64 <%= link_to_if_authorized l(:button_edit), :controller => 'versions', :action => 'edit', :id => version %>
65 <% if authorize_for('versions', 'destroy') %>
66 &nbsp;
67 <%= start_form_tag :controller => 'versions', :action => 'destroy', :id => version %>
68 <%= submit_tag l(:button_delete), :class => "button-small" %>
69 <%= end_form_tag %>
70 <% end %>
59 <td>
60 <%= link_to_if_authorized l(:button_edit), { :controller => 'versions', :action => 'edit', :id => version }, :class => 'pic picEdit' %>
61 <%= link_to_if_authorized l(:button_delete), {:controller => 'versions', :action => 'destroy', :id => version}, :confirm => l(:text_are_you_sure), :post => true, :class => 'pic picDelete' %>
71 62 </td>
72 63 </tr>
73 64 <% end %>
@@ -96,11 +87,7
96 87 <% end %>
97 88 </td>
98 89 <td>
99 <% if authorize_for('issue_categories', 'destroy') %>
100 <%= start_form_tag :controller => 'issue_categories', :action => 'destroy', :id => @category %>
101 <%= submit_tag l(:button_delete), :class => "button-small" %>
102 <%= end_form_tag %>
103 <% end %>
90 <%= 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' %>
104 91 </td>
105 92 </tr>
106 93 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now