<h1>New Individual Assignment Grade</h1>
<h2>(Choose any student, any individual assignment, grade 0-100)</h2>

<% form_for(@igrade) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :student_id, 'Student' %><br />
    <%= f.select :student_id, 
    Student.find(:all, :order => "name").collect{|s| [s.name, s.id]} %>
  </p>
  <p>
    <%= f.label :assignment_id, 'Assignment' %><br />
    <%= f.select :assignment_id, 
    Assignment.find(:all, :conditions => ["groupf =  'f' "],
    :order => "due_date").collect{|s| [s.description, s.id]} %>
  </p>
  <p>
    <%= f.label :grade %><br />
    <%= f.text_field :grade %>
  </p>
  <p>
    <%= f.submit 'Create' %>
  </p>
<% end %>

<%= link_to 'Back', igrades_path %>