mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 20:24:43 +08:00
23 lines
1.1 KiB
Text
23 lines
1.1 KiB
Text
<% # frozen_string_literal: true %>
|
|
|
|
<div class="modal fade" tabindex="-1" role="dialog">
|
|
<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: resource.name %></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<%= render partial: 'access_permissions/partials/user_assignment', collection: resource.user_assignments, cached: ->(user_assignment) { [user_assignment. resource, current_user] } %>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<% if can_manage_resource %>
|
|
<%= 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: resource.model_name.human.downcase %>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|