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

16 lines
476 B
Plaintext

<section class="inset">
<%= form_with model: @stat, url: character_sheet_section_stats_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.label :roll_command %>
<%= f.text_field :roll_command %>
<%= display_form_errors(@section, :roll_command) %>
<%= f.submit button_text %>
<% end %>
</section>