= render :partial => 'projects/submenu' = form_tag project_collaborators_path(@project), :id => 'members_form', :delete_url => remove_project_collaborators_path(@project) do = hidden_field_tag "_method", "post" %table.tablesorter{:cellpadding => "0", :cellspacing => "0"} %thead %tr %th \  %th = t("layout.collaborators.members") %th{:colspan => "3"} = t("layout.collaborators.roles") %tbody - @users.each do |user| %tr#admin-table-members-row1 %td %span#niceCheckbox1.niceCheck-main{:onclick => "changeCheck(this)", :style => "background-position: 0px 0px; "} = check_box_tag "user_remove[#{user.id}][]" %td .img = image_tag(gravatar_url(user.email)) .forimg= link_to user.name, user_path(user) - Relation::ROLES.each_with_index do |role, i| %td .radio = radio_button_tag "user[#{user.id}]", role, ((@project.relations.exists? :object_id => user.id, :object_type => 'User', :role => role) ? :checked : nil), :class => 'niceRadio' -# f.radio_button "group[#{role}][#{group.id}]", '1', ((@project.relations.exists? :object_id => group.id, :object_type => 'Group', :role => role) ? :checked : nil) -#%span.niceRadio.radioChecked -# %input#myradio1{:checked => "checked", :name => "myradio", :tabindex => "1", :type => "radio", :value => "on"}/ .forradio= t("layout.collaborators.role_names.#{ role }") = link_to_function t("layout.delete"), "deleteAdminMember();", :class => 'button' .both .hr.top = form_tag add_project_collaborators_path(@project) do .admin-search = autocomplete_field_tag 'member_id', params[:member_id], autocomplete_user_uname_users_path, :id_element => '#member_id_field' .admin-role .lineForm = select_tag 'role', options_for_collaborators_roles_select .both -#.admin-search -# = label_tag "group_uname", t("layout.collaborators.input_groupname") -# = autocomplete_field_tag 'group_id', params[:group_id], autocomplete_group_uname_groups_path, :id_element => '#group_id_field' = hidden_field_tag 'member_id', nil, :id => 'member_id_field' =# hidden_field_tag 'group_id', nil, :id => 'group_id_field' %br = submit_tag t("layout.add"), :class => 'button' .hr.bottom .both = link_to_function t("layout.save"), "saveAdminMember();", :class => 'button' - content_for :sidebar, render('projects/sidebar')