24 lines
521 B
Elixir
24 lines
521 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 %>
|
|
|
|
<%= label f, :name %>
|
|
<%= text_input f, :name %>
|
|
<%= error_tag f, :name %>
|
|
|
|
<%= label f, :location %>
|
|
<%= text_input f, :location %>
|
|
<%= error_tag f, :location %>
|
|
|
|
<%= label f, :game %>
|
|
<%= text_input f, :game %>
|
|
<%= error_tag f, :game %>
|
|
|
|
<div>
|
|
<%= submit "Save" %>
|
|
</div>
|
|
<% end %>
|