Commit b4fadbd84fb099a2de9e7c51be88e449e978b54c
1 parent
5c5a42f3
Exists in
master
and in
29 other branches
ActionItem5: added some missing files and deleting a wrong one
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@549 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
4 changed files
with
30 additions
and
0 deletions
Show diff stats
app/views/membership_editor/.index.rhtml.swp
No preview for this file type
... | ... | @@ -0,0 +1,7 @@ |
1 | +<h2> <%= @member.name %> </h2> | |
2 | + | |
3 | +<% form_tag( {:action => 'give_role'}, {:method => :post}) do %> | |
4 | + <%= select_tag 'role', options_for_select(@roles.map{|r|[r.name,r.id]}) %> | |
5 | + <%= hidden_field_tag 'person', current_user.person.id %> | |
6 | + <%= submit_tag _('Affiliate') %> | |
7 | +<% end %> | ... | ... |
... | ... | @@ -0,0 +1,12 @@ |
1 | +<%= _('Changing role of %s') % @member.name %> | |
2 | + | |
3 | +<% labelled_form_for :member, @member, :url => {:action => 'update_roles'} do |f| %> | |
4 | + | |
5 | + <%= _('Roles: ') %> <br> | |
6 | + <% @roles.each do |r| %> | |
7 | + <%= labelled_form_field(r.name, (check_box_tag "roles[]", r.id, @associations.map(&:role).include?(r))) %> | |
8 | + <% end %> | |
9 | + <%= hidden_field_tag 'person', @member.id %> | |
10 | + | |
11 | + <%= submit_tag _('Save changes') %> | |
12 | +<% end %> | ... | ... |
... | ... | @@ -0,0 +1,11 @@ |
1 | +<h2> <%= _('Listing Members') %> </h2> | |
2 | + | |
3 | +<%= link_to _('Affiliate'), :action => 'add_role', :person => current_user.person, :role => Role.find_by_name('member') %> | |
4 | + | |
5 | +<ul> | |
6 | + <% @members.each do |m| %> | |
7 | + <li> <%= m.name %> | |
8 | + <%= link_to _('Edit member role'), :action => 'change_role', :id => m %> | |
9 | + <%= link_to _('Remove member'), :action => 'unassociate', :id => m %></li> | |
10 | + <% end %> | |
11 | +</ul> | ... | ... |