Fix loading of access modal for PET [SCI-9844] (#6855)

This commit is contained in:
ajugo 2023-12-21 12:33:49 +01:00 committed by GitHub
parent bb35e15993
commit b110a78860
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,8 +6,9 @@
item_id = dom_id(user, :assignment_member)
%>
<%= form_with(model: assignment, url: update_path, method: :put, html: { class: 'member-item', id: item_id, data: { remote: true, action: 'replace-form autosave-form', object_type: :assignment_member } }) do |f| %>
<%= f.hidden_field :user_id, value: f.object.user.id %>
<% if assignment.present? %>
<%= form_with(model: assignment, url: update_path, method: :put, html: { class: 'member-item', id: item_id, data: { remote: true, action: 'replace-form autosave-form', object_type: :assignment_member } }) do |f| %>
<%= f.hidden_field :user_id, value: f.object.user.id %>
<div class="user-assignment-info">
<div class="global-avatar-container">
<%= image_tag avatar_path(user, :icon_small), title: current_assignee_name(user), class: 'img-circle pull-left' %>
@ -50,4 +51,5 @@
</button>
<% end %>
</div>
<% end %>
<% end %>