mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 14:17:00 +08:00
14 lines
482 B
Ruby
14 lines
482 B
Ruby
# frozen_string_literal: true
|
|
|
|
json.html controller.render_to_string(
|
|
partial: 'access_permissions/partials/new_assignments_form',
|
|
formats: [:html],
|
|
locals: {
|
|
assignable: @protocol,
|
|
form_object: @user_assignment,
|
|
users: current_team.users.where.not(id: @protocol.manually_assigned_users.select(:id)),
|
|
create_path: access_permissions_protocols_path(id: @protocol.id),
|
|
assignable_path: edit_access_permissions_protocol_path(@protocol)
|
|
},
|
|
layout: false
|
|
)
|