mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
20 lines
526 B
Elixir
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 %>
|