parent
743fee80e3
commit
045b55236f
@ -0,0 +1,22 @@
|
||||
<% if hadcommittedhomework(User.current.id, bid.id) %>
|
||||
<%#= l(:label_bidding_homework_committed) %>
|
||||
<span class="font_color_orange" > 作业已经提交 </span>
|
||||
<% else %>
|
||||
<% if bid.reward_type==Bid::Homework &&
|
||||
bid.homework_type==Bid::HomeworkFile %>
|
||||
<%= form_for HomeworkAttach.new, :url => {:controller => 'bids', :action => 'add_homework', id: bid.id, back_url: request.url() }, :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 %>
|
||||
|
||||
<% end %>
|
||||
<% end %>
|
Loading…
Reference in new issue