Rewrite rendering rows with users projects access in Users table in Admin group section
This commit is contained in:
parent
634783feb0
commit
39e7a0eafe
|
@ -78,7 +78,9 @@
|
|||
%td.projects_access
|
||||
- u.projects.in_namespace(@group).each do |project|
|
||||
- u_p = u.users_projects.in_project(project).first
|
||||
= "#{project.name} (#{link_to u_p.project_access_human, edit_admin_team_member_path(u_p) })".html_safe
|
||||
%span
|
||||
= project.name
|
||||
= link_to "(#{ u_p.project_access_human })", edit_admin_team_member_path(u_p)
|
||||
%tr
|
||||
%td.input= select_tag :user_ids, options_from_collection_for_select(@users , :id, :name), multiple: true, data: {placeholder: 'Select users'}, class: 'chosen span5'
|
||||
%td= select_tag :project_access, options_for_select(Project.access_options), {class: "project-access-select chosen span3"}
|
||||
|
|
Loading…
Reference in New Issue