tabletop-companion/app/views/admin/game_systems/_form.html.erb

10 lines
272 B
Plaintext

<%# locals: (game_system: @game_system, button_text:, url:) %>
<%= form_with model: @game_system, url: do |f| %>
<%= f.label :name %>
<%= f.text_field :name, required: true %>
<%= display_form_errors(@game_system, :name) %>
<%= f.submit button_text %>
<% end %>