mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 21:10:54 +00:00
28 lines
554 B
Text
28 lines
554 B
Text
|
<h1>New Category</h1>
|
||
|
|
||
|
<div class="wide box">
|
||
|
<%= form_for(@category) do |f| %>
|
||
|
<div id="error_explanation">
|
||
|
<ul>
|
||
|
<% @category.errors.full_messages.each do |msg| %>
|
||
|
<li><%= msg %></li>
|
||
|
<% end %>
|
||
|
</ul>
|
||
|
</div>
|
||
|
|
||
|
<p>
|
||
|
<%= f.label :name %><br />
|
||
|
<%= f.text_field :name %>
|
||
|
</p>
|
||
|
<p>
|
||
|
<%= f.label :domain %><br />
|
||
|
<%= f.select :domain, @category.domains.invert %>
|
||
|
</p>
|
||
|
<p>
|
||
|
<%= f.submit 'Create' %>
|
||
|
</p>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
|
||
|
<%= link_to 'Back', categories_path %>
|