Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow admin to remove group member

  • Loading branch information...
commit 43830908173f1a940190db0d114493ea2ec909f3 1 parent 0090cd2
Craig authored
View
14 app/views/members/political_groups/_administer_other_members.html.erb
@@ -0,0 +1,14 @@
+<h2>Other members:</h2>
+
+<table>
+<% @group_members.each do |group_member| %>
+ <tr>
+ <td>
+ <p><%= group_member.email %></p>
+ </td>
+ <td>
+ <%= link_to "Remove", members_political_group_join_political_group_path(@political_group, :group_member_id => group_member.id), :method => :delete %>
+ </td>
+ </tr>
+ <% end%>
+</table>
View
5 app/views/members/political_groups/_show_other_members.html.erb
@@ -0,0 +1,5 @@
+ <h2>Other members:</h2>
+
+ <% @group_members.each do |group_member| %>
+ <p><%= group_member.email %></p>
+ <% end%>
Please sign in to comment.
Something went wrong with that request. Please try again.