mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 06:06:56 +08:00
31 lines
1.2 KiB
Text
31 lines
1.2 KiB
Text
<% # frozen_string_literal: true %>
|
|
|
|
<%
|
|
project_member = f.object
|
|
user = project_member.user
|
|
id = dom_id(user, :new_project_member)
|
|
%>
|
|
|
|
<div class="row member-item" data-filter-item="<%= user.full_name %>">
|
|
<%= f.hidden_field :user_id, value: user.id, name:"access_permissions_new_user_project_form[resource_members][#{user.id}][user_id]" %>
|
|
<div class="col-xs-1 checkbox text-center">
|
|
<label>
|
|
<%= f.check_box :assign,
|
|
name: "access_permissions_new_user_project_form[resource_members][#{user.id}][assign]",
|
|
data: { action: 'toggle-visibility', target: id}
|
|
%>
|
|
</label>
|
|
</div>
|
|
<div class="col-xs-1">
|
|
<span class="global-avatar-container">
|
|
<%= image_tag avatar_path(user, :icon_small), title: current_assignee_name(user), class: 'img-circle pull-left' %>
|
|
</span>
|
|
</div>
|
|
<div class="col-xs-6">
|
|
<span><%= current_assignee_name(user) %></span>
|
|
</div>
|
|
|
|
<div class="col-xs-4 form-group hidden" id="<%= id %>">
|
|
<%= f.select :user_role_id, options_for_select(new_user_roles_collection), {}, name: "access_permissions_new_user_project_form[resource_members][#{user.id}][user_role_id]", class: 'form-control selectpicker pull-right' %>
|
|
</div>
|
|
</div>
|