scinote-web/app/views/access_permissions/experiments/modals/_show_modal.html.erb
aignatov-bio dfa79c6996
Fix duplicate requests for project user manage modal [SCI-6249] (#3647)
Co-authored-by: Anton <anton@scinote.net>
2021-11-09 16:16:10 +01:00

18 lines
890 B
Text

<% # frozen_string_literal: true %>
<div class="modal fade experiment-assignments-modal" tabindex="-1" role="dialog" data-action="modal-close">
<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">&times;</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) %>
<%= render partial: 'access_permissions/partials/user_assignment', locals: { user_assignment: user_assignment, user: user, resource: experiment } %>
<% end %>
</div>
</div>
</div>
</div>