Added some compatibility wrappers for the stable 0.8.x version of Redmine.
This commit is contained in:
@@ -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) %>
|
||||
|
||||
Reference in New Issue
Block a user