2022-12-22 20:27:46 +08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-01-23 05:23:18 +08:00
|
|
|
json.html controller.render_to_string(
|
2023-02-23 21:57:38 +08:00
|
|
|
partial: 'access_permissions/modals/edit_modal',
|
2022-12-22 20:27:46 +08:00
|
|
|
formats: [:html],
|
|
|
|
locals: {
|
2023-02-23 21:57:38 +08:00
|
|
|
assignable: @protocol,
|
|
|
|
top_level_assignable: @protocol,
|
|
|
|
manually_assigned_users: @protocol.manually_assigned_users,
|
2022-12-22 20:27:46 +08:00
|
|
|
update_path: access_permissions_protocol_path(@protocol),
|
2023-02-23 21:57:38 +08:00
|
|
|
new_assignment_path: new_access_permissions_protocol_path(id: @protocol)
|
2022-12-22 20:27:46 +08:00
|
|
|
},
|
|
|
|
layout: false
|
|
|
|
)
|
|
|
|
|
|
|
|
json.flash @message
|