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

14 lines
399 B
Plaintext
Raw Normal View History

2024-05-29 07:28:13 +00:00
<%# locals: (button_text:) -%>
2024-05-28 19:16:43 +00:00
<%= form_with model: @table do |f| %>
<%= f.label :name %>
2024-05-29 07:46:31 +00:00
<%= f.text_field :name%>
<%= display_form_errors(@table, :name) %>
2024-05-28 19:16:43 +00:00
<%= f.label :game_system_id %>
2024-05-29 07:46:31 +00:00
<%= f.collection_select :game_system_id, GameSystem.all, :id, :name, required: true, include_blank: " " %>
<%= display_form_errors(@table, :game_system) %>
2024-05-28 19:16:43 +00:00
<%= f.submit button_text %>
<% end %>