summaryrefslogtreecommitdiffstats
path: root/app/views/users/_memberships.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/users/_memberships.html.erb')
-rw-r--r--app/views/users/_memberships.html.erb8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/views/users/_memberships.html.erb b/app/views/users/_memberships.html.erb
index 51fb11106..a480d2ac7 100644
--- a/app/views/users/_memberships.html.erb
+++ b/app/views/users/_memberships.html.erb
@@ -19,8 +19,10 @@
</td>
<td class="roles">
<span id="member-<%= membership.id %>-roles"><%=h membership.roles.sort.collect(&:to_s).join(', ') %></span>
- <% remote_form_for(:membership, :url => user_membership_path(@user, membership), :method => :put,
- :html => { :id => "member-#{membership.id}-roles-form", :style => 'display:none;'}) do %>
+ <%= form_for(:membership, :remote => true,
+ :url => user_membership_path(@user, membership), :method => :put,
+ :html => {:id => "member-#{membership.id}-roles-form",
+ :style => 'display:none;'}) do %>
<p><% roles.each do |role| %>
<label><%= check_box_tag 'membership[role_ids][]', role.id, membership.roles.include?(role),
:disabled => membership.member_roles.detect {|mr| mr.role_id == role.id && !mr.inherited_from.nil?} %> <%=h role %></label><br />
@@ -57,7 +59,7 @@
<div class="splitcontentright">
<% if projects.any? %>
<fieldset><legend><%=l(:label_project_new)%></legend>
-<% remote_form_for(:membership, :url => user_memberships_path(@user)) do %>
+<%= form_for(:membership, :remote => true, :url => user_memberships_path(@user)) do %>
<%= select_tag 'membership[project_id]', options_for_membership_project_select(@user, projects) %>
<p><%= l(:label_role_plural) %>:
<% roles.each do |role| %>