<%= ts("Edit Chapter") %>
<%= error_messages_for :chapter %>
-
<%= link_to ts("Delete Chapter"), [:confirm_delete, @work, @chapter],
data: { confirm: ts("Are you sure you want to delete this chapter? This will delete all comments on the chapter as well and cannot be undone!") } %>
<% if @work.pseuds.size > 1 && @chapter.pseuds.size > 1 && current_user.is_author_of?(@chapter) %>
-
<%= link_to ts("Remove Me As Chapter Co-Creator"),
{action: "edit", id: @chapter.id, remove: "me"},
confirm: ts("Are you sure you want to remove yourself as a co-creator of this chapter?") %>
<% end %>
<%= render 'chapter_form', chapter: @chapter %>