diff options
-rw-r--r-- | app/views/groups/_memberships.html.erb | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/app/views/groups/_memberships.html.erb b/app/views/groups/_memberships.html.erb index 73a156faa..9346e1021 100644 --- a/app/views/groups/_memberships.html.erb +++ b/app/views/groups/_memberships.html.erb @@ -22,14 +22,26 @@ <label><%= check_box_tag 'membership[role_ids][]', role.id, membership.roles.include?(role) %> <%=h role %></label><br /> <% end %></p> <p><%= submit_tag l(:button_change) %> - <%= link_to_function l(:button_cancel), "$('member-#{membership.id}-roles').show(); $('member-#{membership.id}-roles-form').hide(); return false;" %></p> + <%= link_to_function( + l(:button_cancel), + "$('member-#{membership.id}-roles').show(); $('member-#{membership.id}-roles-form').hide(); return false;" + ) %></p> <% end %> </td> <td class="buttons"> - <%= link_to_function l(:button_edit), "$('member-#{membership.id}-roles').hide(); $('member-#{membership.id}-roles-form').show(); return false;", :class => 'icon icon-edit' %> - <%= link_to_remote l(:button_delete), { :url => { :controller => 'groups', :action => 'destroy_membership', :id => @group, :membership_id => membership }, - :method => :post }, - :class => 'icon icon-del' %> + <%= link_to_function( + l(:button_edit), + "$('member-#{membership.id}-roles').hide(); $('member-#{membership.id}-roles-form').show(); return false;", + :class => 'icon icon-edit' + ) %> + <%= link_to_remote( + l(:button_delete), + { :url => { :controller => 'groups', + :action => 'destroy_membership', + :id => @group, + :membership_id => membership }, + :method => :post }, + :class => 'icon icon-del' ) %> </td> </tr> <% end; reset_cycle %> |