%= stylesheet_link_tag 'css'%>
<%= f.text_field :name, :required => true, :name => "homework_name", :class => "w430 bo", :maxlength => 254, :placeholder => "作品名称", :onblur => "regexName();"%>
<%= f.text_area :description, :rows => 8, :name => "homework_description", :class => "w620", :maxlength => 3000, :placeholder => "最多3000个汉字" %>
<%#= render :partial => 'attachments/form' %> <% unless @homework.attachments.empty?%>
<% options = {:author => true, :deletable => attach_delete(@homework)} %> <%= render :partial => 'attachments/links', :locals => {:attachments => @homework.attachments, :options => options} %>
<% end %><%= render :partial => 'attachments/form' %>
<% 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 %>
<% end %>