scinote-web/app/views/access_permissions/protocols/protocol_member.json.jbuilder
2023-02-23 14:57:38 +01:00

13 lines
398 B
Ruby

# frozen_string_literal: true
json.form controller.render_to_string(
partial: 'access_permissions/partials/member_field',
formats: [:html],
locals: {
user: @user_assignment.user,
assignable: @protocol,
update_path: access_permissions_protocol_path(@protocol),
delete_path: access_permissions_protocol_path(@protocol, user_id: @user_assignment.user_id)
},
layout: false
)