2021-04-29 00:02:18 +08:00
|
|
|
<% # frozen_string_literal: true %>
|
|
|
|
|
|
|
|
<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">
|
2022-01-10 21:55:11 +08:00
|
|
|
<% project.manually_assigned_users.order(full_name: :asc).each do |user| %>
|
2021-12-01 23:23:24 +08:00
|
|
|
<%= render('access_permissions/partials/project_member_field', user: user, project: project, update_path: update_path) %>
|
2021-04-29 00:02:18 +08:00
|
|
|
<% end %>
|
2022-01-25 19:41:36 +08:00
|
|
|
<%= render('access_permissions/partials/default_public_user_role_form', project: project, editable: true) if project.visible? %>
|
2021-04-29 00:02:18 +08:00
|
|
|
</div>
|
2021-12-01 23:23:24 +08:00
|
|
|
|
2021-04-29 00:02:18 +08:00
|
|
|
<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>
|
|
|
|
<%= t '.new_resource_assignments', resource: project.model_name.human.downcase %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|