<%= stylesheet_link_tag 'css'%>
  • 修改作业
  • 成员
  • <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new', :course => 0, :project_type => 0}) if User.current.allowed_to?(:add_project, nil, :global => true) %>
<%= form_for(@homework) do |f|%>

<%= 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个汉字" %>

<% 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 %>

                       <%= l(:label_button_ok) %> 取  消

<% end %>
<%= render :partial => "homework_member",:locals => {:members => @members,:hoemwork_users =>@hoemwork_users,:homework => @homework} %>