50 lines
1.1 KiB
Plaintext
50 lines
1.1 KiB
Plaintext
<%= 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">
|
|
<%= f.label :category %><br>
|
|
<%= f.text_field :category %>
|
|
</div>
|
|
<div class="field">
|
|
<%= f.label :address %><br>
|
|
<%= f.text_field :address %>
|
|
</div>
|
|
<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 %>
|