2021-05-09 00:06:07 +08:00
|
|
|
<% # frozen_string_literal: true %>
|
|
|
|
|
2021-11-09 23:16:10 +08:00
|
|
|
<div class="modal fade experiment-assignments-modal" tabindex="-1" role="dialog" data-action="modal-close">
|
2021-05-09 00:06:07 +08:00
|
|
|
<div class="modal-dialog modal-md" role="document">
|
|
|
|
<div class="modal-content" id="user_assignments_modal">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
|
|
<h4 class="modal-title"><%= t '.title', resource_name: experiment.name %></h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2022-01-10 21:55:11 +08:00
|
|
|
<% users.order(full_name: :asc).each do |user| %>
|
2021-05-09 00:06:07 +08:00
|
|
|
<% user_assignment = experiment.user_assignments.find_by(user: user) %>
|
2022-10-25 22:07:55 +08:00
|
|
|
<% next if user_assignment.blank? %>
|
2021-10-22 16:03:52 +08:00
|
|
|
<%= render partial: 'access_permissions/partials/user_assignment', locals: { user_assignment: user_assignment, user: user, resource: experiment } %>
|
2021-05-09 00:06:07 +08:00
|
|
|
<% end %>
|
2022-02-18 17:19:13 +08:00
|
|
|
<%= render('access_permissions/partials/default_public_user_role_form', project: experiment.project, editable: false) if experiment.project.visible? %>
|
2021-05-09 00:06:07 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|