<%= _('New member') %>

<%= link_to( profile_image(task.requestor, :minor, :border => 0), task.requestor.public_profile_url ) %> <%= _('%s wants to be a member of %s.') % [content_tag('strong', link_to( task.requestor.name, task.requestor.public_profile_url ) ), content_tag('strong', link_to( task.target.name, task.target.public_profile_url ) )] %> <% form_for('task', task, :url => { :action => 'close', :id => task.id } ) do |f| %>
<%= radio_button_tag(:decision, 'finish', true, :id => "decision-finish-#{task.id}", :onclick => "Element.show('group-for-friend-#{task.id}')") %>     <%= radio_button_tag(:decision, 'cancel', false, :id => "decision-cancel-#{task.id}", :onclick => "Element.hide('group-for-friend-#{task.id}')") %>

<%= _('Roles:') %>
<% @roles = Role.find(:all).select{ |r| r.has_kind?('Profile') } %> <% @roles.each do |r| %> <%= labelled_check_box(r.name, 'task[roles][]', r.id, ( task.target.members.empty? ? true : ( r.id == Profile::Roles.member.id ) ) ) %>
<% end %>

<% button_bar do %> <%= submit_button(:ok, _('Ok!')) %> <% end %> <% end %>