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">
|
|
|
|
<% users.each do |user| %>
|
|
|
|
<% user_assignment = experiment.user_assignments.find_by(user: user) %>
|
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 %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|