mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 04:06:53 +08:00
34 lines
1.4 KiB
Text
34 lines
1.4 KiB
Text
<% # frozen_string_literal: true %>
|
|
|
|
<div class="modal fade" tabindex="-1" role="dialog" data-action="modal-close" data-target="<%= project_path %>">
|
|
<div class="modal-dialog modal-lg" 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">
|
|
<p>
|
|
<%= t '.description' %>
|
|
</p>
|
|
<hr />
|
|
<% users.each do |user| %>
|
|
<% user_assignment = experiment.user_assignments.find_by(user: user) %>
|
|
|
|
<% cache [user_assignment, experiment, user] do %>
|
|
<%= render partial: 'access_permissions/partials/experiment_member_field',
|
|
locals: {
|
|
user: user,
|
|
project: project,
|
|
experiment: experiment,
|
|
update_path: access_permissions_project_experiment_path(project, experiment)
|
|
} %>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type='button' class='btn btn-default' data-dismiss='modal'><%= t('general.cancel')%></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|