2022-12-22 20:27:46 +08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
json.html controller.render_to_string(
|
2023-01-23 05:23:18 +08:00
|
|
|
partial: 'access_permissions/partials/new_assignments_form',
|
2022-12-22 20:27:46 +08:00
|
|
|
formats: [:html],
|
|
|
|
locals: {
|
2023-02-23 21:57:38 +08:00
|
|
|
assignable: @protocol,
|
2023-01-03 21:43:03 +08:00
|
|
|
form_object: @user_assignment,
|
2023-03-06 23:43:46 +08:00
|
|
|
users: current_team.users.where.not(id: @protocol.manually_assigned_users.select(:id)),
|
2023-01-03 21:43:03 +08:00
|
|
|
create_path: access_permissions_protocols_path(id: @protocol.id),
|
2023-02-23 21:57:38 +08:00
|
|
|
assignable_path: edit_access_permissions_protocol_path(@protocol)
|
2022-12-22 20:27:46 +08:00
|
|
|
},
|
|
|
|
layout: false
|
|
|
|
)
|