1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00
chess/lib/chess_web/templates/game/form.html.eex
2018-04-08 23:03:35 -04:00

20 lines
526 B
Elixir

<%= form_for @changeset, @action, fn f -> %>
<%= if @changeset.action do %>
<div class="alert alert-danger">
<p>
<%= gettext "Oops, something went wrong! Please check the errors below." %>
</p>
</div>
<% end %>
<div class="form-group">
<%= label f, :board, class: "control-label" %>
<%= text_input f, :board, class: "form-control" %>
<%= error_tag f, :board %>
</div>
<div class="form-group">
<%= submit gettext("Submit"), class: "btn btn-primary" %>
</div>
<% end %>