mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-17 02:24:34 +08:00
25 lines
1.3 KiB
Text
25 lines
1.3 KiB
Text
<% # frozen_string_literal: true %>
|
|
|
|
<div class="modal fade user-assignments-modal protocol-assignments-modal" tabindex="-1" role="dialog" data-action="modal-close">
|
|
<div class="modal-dialog modal-lg" 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: protocol.name %></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<% protocol.manually_assigned_users.order(full_name: :asc).each do |user| %>
|
|
<%= render('access_permissions/partials/protocol_member_field', user: user, protocol: protocol, update_path: update_path) %>
|
|
<% end %>
|
|
<%= render('access_permissions/partials/protocol_public_user_role_form', protocol: protocol, editable: true) %>
|
|
</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: protocol.model_name.human.downcase) %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|