% if participant %>
<%= form_for(participant, url: collection_participant_path(@collection, participant), as: :collection_participant) do |form| %>
<%= link_to participant.pseud.byline, user_path(participant.pseud.user) %>
- <%= form.select(:participant_role, CollectionParticipant::PARTICIPANT_ROLE_OPTIONS, {}, id: participant.pseud.user.login + "_role") %>
- <%= form.submit ts("Update"), id: participant.pseud.user.login + "_submit" %>
<% end %>
- <%= button_to ts("Remove"), collection_participant_path(@collection, participant),
data: { confirm: ts('Are you certain you want to remove %{participant}?',
participant: participant.pseud.name) },
method: :delete %>
<% end %>