tabletop-companion/app/views/characters/edit.html.erb

8 lines
402 B
Plaintext

<% content_for :title, t(".edit_character", name: @character.name) %>
<h2><%= t(".edit_character", name: @character.name) %></h2>
<%= link_to t(".delete_character", name: @character.name), character_path(@character),
data: { turbo_method: :delete, turbo_confirm: t(".delete_character_confirmation", name: @character.name) } %>
<%= render partial: "form", locals: { button_text: t(".update") } %>