Files
kondiplo_front/app/views/turns/_form.html.erb
kontei f25fd6f802
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / system-test (push) Has been cancelled
フロントエンドプレイアブル
2026-02-15 14:57:17 +09:00

43 lines
951 B
Plaintext

<%= form_with(model: turn) do |form| %>
<% if turn.errors.any? %>
<div style="color: red">
<h2><%= pluralize(turn.errors.count, "error") %> prohibited this turn from being saved:</h2>
<ul>
<% turn.errors.each do |error| %>
<li><%= error.full_message %></li>
<% end %>
</ul>
</div>
<% end %>
<div>
<%= form.label :number, style: "display: block" %>
<%= form.number_field :number %>
</div>
<div>
<%= form.label :phase, style: "display: block" %>
<%= form.text_field :phase %>
</div>
<div>
<%= form.label :game_state, style: "display: block" %>
<%= form.text_field :game_state %>
</div>
<div>
<%= form.label :svg_date, style: "display: block" %>
<%= form.textarea :svg_date %>
</div>
<div>
<%= form.label :game_id, style: "display: block" %>
<%= form.text_field :game_id %>
</div>
<div>
<%= form.submit %>
</div>
<% end %>