%= stylesheet_link_tag 'css'%>
<%= f.text_field :name, :required => true, :name => "homework_name", :class => "w430 bo", :maxlength => 254, :placeholder => "作品名称"%>
<% if @homework.project.nil? %> <%= f.select :project_id, options_for_select(user_projects_option),{}, {:name => "project_id", :required => true,:class => "w350 bo"}%> <% else %> <%= f.select :project_id, options_for_select(user_projects_option,@homework.project.id),{},{:name => "project_id", :required => true, :class => "w350 bo"}%> <% end %>
<%= f.text_area :description, :rows => 8, :name => "homework_description", :class => "w620", :maxlength => 3000, :placeholder => "最多3000个汉字" %>
<%#= render :partial => 'attachments/form' %>
<% options = {:author => true, :deletable => attach_delete(@homework)} %> <%= render :partial => 'attachments/links', :locals => {:attachments => @homework.attachments, :options => options} %>
<%= render :partial => 'attachments/form' %>
<% end %>