tabletop-companion/app/views/counters/_form.html.erb

12 lines
354 B
Plaintext
Raw Normal View History

2024-06-12 16:51:57 +00:00
<section class="inset">
<%= form_with model: @counter, url: character_sheet_section_counters_path(@section) do |f| %>
<%= f.hidden_field :character_sheet_section_id, value: @section.id %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= display_form_errors(@section, :name) %>
<%= f.submit button_text %>
<% end %>
</section>