You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
918 B
43 lines
918 B
<%= form_for(category) do |f| %>
|
|
<% if category.errors.any? %>
|
|
<div id="error_explanation">
|
|
<h2><%= pluralize(category.errors.count, "error") %> prohibited this category from being saved:</h2>
|
|
|
|
<ul>
|
|
<% category.errors.full_messages.each do |message| %>
|
|
<li><%= message %></li>
|
|
<% end %>
|
|
</ul>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div class="field">
|
|
<%= f.label :name %>
|
|
<%= f.text_field :name %>
|
|
</div>
|
|
|
|
<div class="field">
|
|
<%= f.label :blurb %>
|
|
<%= f.text_field :blurb %>
|
|
</div>
|
|
|
|
<div class="field">
|
|
<%= f.label :description %>
|
|
<%= f.text_area :description %>
|
|
</div>
|
|
|
|
<div class="field">
|
|
<%= f.label :external_id %>
|
|
<%= f.text_field :external_id %>
|
|
</div>
|
|
|
|
<div class="field">
|
|
<%= f.label :parent_category_id %>
|
|
<%= f.number_field :parent_category_id %>
|
|
</div>
|
|
|
|
<div class="actions">
|
|
<%= f.submit %>
|
|
</div>
|
|
<% end %>
|