Added some compatibility wrappers for the stable 0.8.x version of Redmine.

This commit is contained in:
Eric Davis
2009-04-21 21:35:13 -07:00
parent 1e10952506
commit df0ecda7ff
2 changed files with 50 additions and 0 deletions
+5
View File
@@ -58,7 +58,12 @@
<p>
<label><%=l(:label_project_new)%></label><br/>
<% form_tag({ :action => 'edit_membership', :id => @user }) do %>
<%# 0.8.x compatibility %>
<% if respond_to?(:options_for_membership_project_select) %>
<%= select_tag 'membership[project_id]', options_for_membership_project_select(@user, @projects) %>
<% else %>
<%= select_tag 'membership[project_id]', projects_options_for_select(@projects) %>
<% end %>
<%= l(:label_role) %>:
<%= select_tag 'membership[role_id]', options_from_collection_for_select(@roles, "id", "name") %>
<%= submit_tag l(:button_add) %>