mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-04 06:36:27 +08:00
19 lines
901 B
Text
19 lines
901 B
Text
<% # 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">
|
|
<% project.users.each do |user| %>
|
|
<%= render('access_permissions/partials/project_member_field.html.erb', user: user, project: project, update_path: update_path) %>
|
|
<% end %>
|
|
</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>
|
|
<%= t '.new_resource_assignments', resource: project.model_name.human.downcase %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|