2021-05-09 00:06:07 +08:00
|
|
|
<% # frozen_string_literal: true %>
|
|
|
|
|
2021-11-15 18:12:31 +08:00
|
|
|
<div class="modal fade user-assignments-modal experiment-assignments-modal" tabindex="-1" role="dialog" data-action="modal-close">
|
2021-05-09 22:59:10 +08:00
|
|
|
<div class="modal-dialog modal-lg" role="document">
|
2021-05-09 00:06:07 +08:00
|
|
|
<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">
|
2021-11-10 18:40:41 +08:00
|
|
|
<p class="user-assignments-description">
|
2021-05-09 22:59:10 +08:00
|
|
|
<%= t '.description' %>
|
|
|
|
</p>
|
|
|
|
<hr />
|
2022-01-10 21:55:11 +08:00
|
|
|
<% users.order(full_name: :asc).each do |user| %>
|
2021-10-22 16:03:52 +08:00
|
|
|
<%= render partial: 'access_permissions/partials/experiment_member_field',
|
|
|
|
locals: {
|
|
|
|
user: user,
|
|
|
|
project: project,
|
|
|
|
experiment: experiment,
|
|
|
|
update_path: access_permissions_project_experiment_path(project, experiment)
|
|
|
|
} %>
|
2021-05-09 00:06:07 +08:00
|
|
|
<% end %>
|
2022-01-25 19:41:36 +08:00
|
|
|
<%= render('access_permissions/partials/default_public_user_role_form', project: project, editable: false) if project.visible? %>
|
2021-05-09 00:06:07 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|