Files
runosaari.net/lib/runosaari_web/templates/location/form.html.eex
2021-03-30 22:40:29 +03:00

32 lines
752 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, :address %>
<%= text_input f, :address %>
<%= error_tag f, :address %>
<%= label f, :reserved_seats %>
<%= number_input f, :reserved_seats %>
<%= error_tag f, :reserved_seats %>
<%= label f, :max_seats %>
<%= number_input f, :max_seats %>
<%= error_tag f, :max_seats %>
<%= label f, :description %>
<%= text_input f, :description %>
<%= error_tag f, :description %>
<div>
<%= submit "Save" %>
</div>
<% end %>