%= javascript_include_tag('assign_role.js') %>
<%= _("Assign #{@role.name}") %>
<%= labelled_form_for :role, :url => { :action => 'define', :id => @role.id } do |f| %>
<%= _("Assign role by:") %>
<%= labelled_radio_button _("Members"), :assign_role_by, "members", true, :id => "assign_role_by_members", :class => "assign_role_by" %>
<%= labelled_radio_button _("Roles"), :assign_role_by, "roles", false, :id => "assign_role_by_roles", :class => "assign_role_by" %>
<%=token_input_field_tag(:person_id, 'search-profile-members', {:action => 'assign_role_by_members'},
{:focus => false, :hint_text => _('Select members to assign the role')}) %>
<% button_bar do %>
<%= submit_button(:forward, _("Confirm")) %>
<% end %>
<%= _("Replace role: ") %>
<% @roles_list.each do |role| %>
<%= labelled_radio_button role.name , :selected_role, role.id , false, :class => "selected_role" %>
<% end %>
<% button_bar do %>
<%= submit_button('save',_('Confirm'), :cancel => {:action => 'index'} ) %>
<% end %>
<% end %>