scinote-web/app/views/access_permissions/protocols/new.json.jbuilder

15 lines
473 B
Text
Raw Normal View History

# frozen_string_literal: true
json.html controller.render_to_string(
partial: 'access_permissions/partials/new_assignments_form',
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,
users: current_team.users.where.not(id: @protocol.assigned_users.select(:id)),
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)
},
layout: false
)