2013-10-09 05:10:03 +00:00
|
|
|
<%= form_for(@space) do |f| %>
|
|
|
|
<% if @space.errors.any? %>
|
|
|
|
<div id="error_explanation">
|
|
|
|
<h2><%= pluralize(@space.errors.count, "error") %> prohibited this space from being saved:</h2>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<% @space.errors.full_messages.each do |msg| %>
|
|
|
|
<li><%= msg %></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div class="field">
|
|
|
|
<%= f.label :name %><br>
|
|
|
|
<%= f.text_field :name %>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
2013-10-09 10:34:27 +00:00
|
|
|
<%= f.label :category %><br>
|
2013-10-09 12:14:30 +00:00
|
|
|
<%= f.text_field :category %> (suggested: <%= Space.categories.join(", ") %>)
|
2013-10-09 05:10:03 +00:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<%= f.label :address %><br>
|
|
|
|
<%= f.text_field :address %>
|
|
|
|
</div>
|
2013-10-09 12:14:30 +00:00
|
|
|
<div class="field">
|
|
|
|
<%= f.label :city %><br>
|
|
|
|
<%= f.text_field :city %>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<%= f.label :state %><br>
|
|
|
|
<%= f.text_field :state %>
|
|
|
|
</div>
|
2013-10-09 05:10:03 +00:00
|
|
|
<div class="field">
|
|
|
|
<%= f.label :hours %><br>
|
|
|
|
<%= f.text_field :hours %>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<%= f.label :phone %><br>
|
|
|
|
<%= f.text_field :phone %>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<%= f.label :email %><br>
|
|
|
|
<%= f.text_field :email %>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<%= f.label :website %><br>
|
|
|
|
<%= f.text_field :website %>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<%= f.label :description %><br>
|
|
|
|
<%= f.text_area :description %>
|
|
|
|
</div>
|
|
|
|
<div class="actions">
|
|
|
|
<%= f.submit %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|