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

12 lines
277 B
Plaintext
Raw Normal View History

2024-05-28 19:16:43 +00:00
<%# 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 %>