2021-04-29 00:02:18 +08:00
|
|
|
<% # frozen_string_literal: true %>
|
|
|
|
|
2021-11-15 18:12:31 +08:00
|
|
|
<div class="modal fade user-assignments-modal project-assignments-modal" tabindex="-1" role="dialog" data-action="modal-close">
|
2021-05-16 17:04:04 +08:00
|
|
|
<div class="modal-dialog modal-lg" role="document">
|
2023-01-23 05:23:18 +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: project.name %></h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<% project.manually_assigned_users.order(full_name: :asc).each do |user| %>
|
|
|
|
<%= render('access_permissions/partials/member_field',
|
|
|
|
user: user,
|
|
|
|
object: project,
|
|
|
|
update_path: update_path,
|
|
|
|
delete_path: access_permissions_project_path(project, user_id: user.id)
|
|
|
|
) %>
|
|
|
|
<% end %>
|
|
|
|
<%= render('access_permissions/partials/default_public_user_role_form', project: project, editable: true) if project.visible? %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
<%= link_to new_resource_path, class: 'btn btn-default pull-left', data: { action: 'swap-remote-container', target: '#user_assignments_modal' } do %>
|
|
|
|
<i class="fas fa-plus"></i>
|
2023-01-23 23:01:40 +08:00
|
|
|
<%= t('access_permissions.grant_access') %>
|
2023-01-23 05:23:18 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-04-29 00:02:18 +08:00
|
|
|
</div>
|
|
|
|
</div>
|