mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 20:24:43 +08:00
19 lines
1 KiB
Text
19 lines
1 KiB
Text
<% # frozen_string_literal: true %>
|
|
|
|
<div class="modal fade project-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">×</span></button>
|
|
<h4 class="modal-title"><%= t '.title', resource_name: project.name %></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<% users.order(full_name: :asc).each do |user| %>
|
|
<% user_assignment = project.user_assignments.find_by(user: user) %>
|
|
<%= render partial: 'access_permissions/partials/user_assignment', locals: { user_assignment: user_assignment, user: user, resource: project } %>
|
|
<% end %>
|
|
<%= render('access_permissions/partials/default_public_user_role_form', project: project, editable: false) if project.visible? %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|