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

12 lines
277 B
Plaintext

<%# locals: (table:, button_text:) -%>
<%= form_with model: @table do |f| %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.label :game_system_id %>
<%= f.collection_select :game_system_id, GameSystem.all, :id, :name %>
<%= f.submit button_text %>
<% end %>