mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
I've also moved everything around to match the new Phoenix 1.3 directory structure.
18 lines
484 B
Elixir
18 lines
484 B
Elixir
<%= form_for @changeset, @action, fn f -> %>
|
|
<%= if @changeset.action do %>
|
|
<div class="alert alert-danger">
|
|
<p>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 "Submit", class: "btn btn-primary" %>
|
|
</div>
|
|
<% end %>
|