% content_for(:title) { "Edit #{@book.title}" } %> <% content_for :header do %> <%= link_to book_slug_path(@book), class: "btn flex-item-justify-start" do %> <%= image_tag "arrow-left.svg", aria: { hidden: true }, size: 24 %> Cancel and go back <% end %> <% end %> <%= render "books/form", book: @book, users: @users, creating_user: nil %> <% content_for :footer do %> <%= button_to book_path(@book), method: :delete, class: "btn btn--negative", data: { turbo_confirm: "Are you sure you want to delete this book? It cannot be undone." } do %> <%= image_tag "trash.svg", aria: { hidden: true }, size: 24 %> Delete <%= @book.title %> <% end %> <%= image_tag "check.svg", aria: { hidden: true }, size: 24 %> <% end %>