2014-03-23 00:22:25 +00:00
|
|
|
<h1>New Category</h1>
|
|
|
|
|
2014-04-27 00:47:53 +00:00
|
|
|
<%= form_for(@category, html: { class: 'square' }) do |f| %>
|
|
|
|
<%= render 'shared/errors', messages: @category.errors.full_messages %>
|
2014-03-23 00:22:25 +00:00
|
|
|
|
2014-04-27 00:47:53 +00:00
|
|
|
<div class="fields horizontal">
|
|
|
|
<%= f.label :name %>
|
|
|
|
<%= f.text_field :name %>
|
|
|
|
</div>
|
|
|
|
<div class="fields horizontal">
|
|
|
|
<%= f.label :domain %>
|
|
|
|
<%= f.select :domain, @category.domains.invert %>
|
|
|
|
</div>
|
2014-04-27 01:35:13 +00:00
|
|
|
|
2014-04-27 00:47:53 +00:00
|
|
|
<div class="controls">
|
|
|
|
<%= f.submit 'Create Category' %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|