2021-04-18 23:19:16 +08:00
|
|
|
<% # frozen_string_literal: true %>
|
|
|
|
|
2021-11-09 23:16:10 +08:00
|
|
|
<div class="modal fade project-assignments-modal" tabindex="-1" role="dialog" data-action="modal-close">
|
2022-02-11 17:46:00 +08:00
|
|
|
<div class="modal-dialog modal-md" role="document">
|
2021-04-18 23:19:16 +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>
|
2022-02-11 17:46:00 +08:00
|
|
|
<h4 class="modal-title"><%= t '.title', resource_name: project.name %></h4>
|
2021-04-18 23:19:16 +08:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2022-02-11 17:46:00 +08:00
|
|
|
<% 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 } %>
|
2021-04-25 00:43:28 +08:00
|
|
|
<% end %>
|
2022-02-11 17:46:00 +08:00
|
|
|
<%= render('access_permissions/partials/default_public_user_role_form', project: project, editable: false) if project.visible? %>
|
2021-04-18 23:19:16 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|