socialforge/app/views/projects/_homeworkupload_homeworkfil...

18 lines
616 B
Plaintext

<%= form_for HomeworkAttach.new,
:url => {:controller => 'bids', :action => 'add_homework', id: bid.id, back_url: homework_project_path(bid.try(:courses).try(:first)) },
:update => "bidding_project_list",
:complete => '$("#put-bid-form").hide();',
:html => {:multipart => true, :id => 'add_homework_form'} do |f| %>
<div style="padding: 20px 0 10px;" >
<fieldset>
<legend>
作业文件上传
</legend>
<p id="put-bid-form-partial">
<%= render :partial => 'attachments/form' %>
</p>
</fieldset>
</div>
<%= submit_tag l(:button_create), :onclick => "return true" %>
<% end %>