diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2006-12-26 11:42:37 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2006-12-26 11:42:37 +0000 |
commit | 451ec230601ef1ef07932bdafe2622d3eb5277b6 (patch) | |
tree | 62afd6af25e2a6175cabf4fbcda5489c88a342b5 /app | |
parent | 4c84165aa074546df9c8d1aea0911b71fd9734bc (diff) | |
download | redmine-451ec230601ef1ef07932bdafe2622d3eb5277b6.tar.gz redmine-451ec230601ef1ef07932bdafe2622d3eb5277b6.zip |
replaced some submit buttons by links on projects/settings
git-svn-id: http://redmine.rubyforge.org/svn/trunk@119 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/views/projects/settings.rhtml | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/app/views/projects/settings.rhtml b/app/views/projects/settings.rhtml index 3f9cba0a0..6c2e53cdb 100644 --- a/app/views/projects/settings.rhtml +++ b/app/views/projects/settings.rhtml @@ -27,11 +27,7 @@ <% end %> </td>
<td> - <% if authorize_for('members', 'destroy') %>
- <%= start_form_tag :controller => 'members', :action => 'destroy', :id => member %>
- <%= submit_tag l(:button_delete), :class => "button-small" %>
- <%= end_form_tag %> - <% end %>
+ <%= link_to_if_authorized l(:button_delete), {:controller => 'members', :action => 'destroy', :id => member}, :confirm => l(:text_are_you_sure), :post => true, :class => 'pic picDelete' %> </td>
</tr>
<% end %>
@@ -60,14 +56,9 @@ <td width="100"><strong><%=h version.name %></strong></td>
<td width="100"><%= format_date(version.effective_date) %></td>
<td><%=h version.description %></td> - <td> - <%= link_to_if_authorized l(:button_edit), :controller => 'versions', :action => 'edit', :id => version %> - <% if authorize_for('versions', 'destroy') %> -
- <%= start_form_tag :controller => 'versions', :action => 'destroy', :id => version %>
- <%= submit_tag l(:button_delete), :class => "button-small" %>
- <%= end_form_tag %> - <% end %>
+ <td> + <%= link_to_if_authorized l(:button_edit), { :controller => 'versions', :action => 'edit', :id => version }, :class => 'pic picEdit' %> + <%= link_to_if_authorized l(:button_delete), {:controller => 'versions', :action => 'destroy', :id => version}, :confirm => l(:text_are_you_sure), :post => true, :class => 'pic picDelete' %> </td>
</tr>
<% end %>
@@ -96,11 +87,7 @@ <% end %>
</td>
<td> - <% if authorize_for('issue_categories', 'destroy') %>
- <%= start_form_tag :controller => 'issue_categories', :action => 'destroy', :id => @category %>
- <%= submit_tag l(:button_delete), :class => "button-small" %>
- <%= end_form_tag %> - <% end %>
+ <%= 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' %> </td>
</tr>
<% end %>
|