camdub/Internships

View on GitHub
app/views/academic_focus_types/_form.html.erb

Summary

Maintainability
Test Coverage
<%= form_for(@academic_focus_type) do |f| %>
  <% if @academic_focus_type.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@academic_focus_type.errors.count, "error") %> prohibited this academic_focus_type from being saved:</h2>

      <ul>
      <% @academic_focus_type.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 Type!</span>
            <% end %>
    </div>

    <div class="box grid_16">
        <div class="block">

          <div class="field">
            <%= f.label :name %>
            <%= f.text_field :name %>
          </div>

        </div>
    </div>
    
<% end %>