AUTOGEN: Locations.
This commit is contained in:
31
lib/runosaari_web/templates/location/form.html.eex
Normal file
31
lib/runosaari_web/templates/location/form.html.eex
Normal file
@@ -0,0 +1,31 @@
|
||||
<%= 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 %>
|
||||
Reference in New Issue
Block a user