app/views/academic_focuses/_form.html.erb
<%= form_for(@academic_focus) do |f| %>
<% if @academic_focus.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@academic_focus.errors.count, "error") %> prohibited this academic_focus from being saved:</h2>
<ul>
<% @academic_focus.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="actions grid_16">
<% content_tag :button, :type => :submit, :class => "green round_all" do %>
<%= image_tag "icons/small/white/Bended%20Arrow%20Right.png" %>
<span>Save this Focus!</span>
<% end %>
</div>
<div class="box grid_8">
<div class="block">
<div class="field">
<%= f.label :name %>
<%= f.text_field :name %>
</div>
<div class="field">
<%= f.label :academic_focus_type_id %>
<%= f.collection_select :academic_focus_type_id, AcademicFocusType.all, :id, :name, {}, {:class => 'chosen'} %>
</div>
<div class="field">
<%= f.label :department_id %>
<%= f.collection_select :department_id, Department.all, :id, :name, {}, {:class => 'chosen'} %>
</div>
</div>
</div>
<% end %>