高校课程实践社区 <%= l(:label_user_location) %> :
<%= link_to request.host()+"/courses", :controller => 'courses', :action => 'index'%>

<%=link_to "主页", home_path %> > <%=link_to l(:label_course_practice), :controller => 'courses', :action => 'index' %> > <%= link_to(@homework.bid.courses.first.name.to_s, homework_course_path(@homework.bid.courses.first)) if @homework.bid.courses.first%> > <%=link_to(@homework.bid.name, respond_path(@homework.bid)) %> > <%= link_to "修改作业",edit_homework_attach_path(@homework)%>

<%=raw l(:label_edit_homework)%>

<%= form_for(@homework) do |f|%>

标 题: <%= f.text_field :name, :required => true, :name => "homework_name", :size => 60, :style => "width:490px;"%>

描 述: <%= f.text_area :description, :rows => 8, :name => "homework_description", :class => 'wiki-edit', :style => "font-size:small;width:490px;margin-left:10px;" %>

<% options = {:author => true, :deletable => attach_delete(@homework)} %> <%= render :partial => 'attachments/links', :locals => {:attachments => @homework.attachments, :options => options} %>

<%= l(:label_attachment_plural) %>

<%= render :partial => 'attachments/form' %>

<%= submit_tag t(:label_button_ok), :sta => 0, :class => "enterprise"%>

<% end %>