|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<!-- fq -->
|
|
|
|
|
|
|
|
|
|
<% if @bid.homework_type == 1%>
|
|
|
|
|
<%= render :partial => 'homework' %>
|
|
|
|
|
<%= render :partial => 'homework' %>
|
|
|
|
|
|
|
|
|
|
<% else %>
|
|
|
|
|
<style>
|
|
|
|
@ -61,43 +61,43 @@
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
|
<!-- 点击我要参加 参加竞标 -->
|
|
|
|
|
<div id = 'flash' style="float:left; width: 100%; display: none" ></div>
|
|
|
|
|
<div id="put-bid-form" style="display: none">
|
|
|
|
|
<%= form_for "bid_for_save", :remote=>true, :url => {:controller => 'bids', :action => 'add'},
|
|
|
|
|
:update => "bidding_project_list",
|
|
|
|
|
:complete => '$("#put-bid-form").hide();' do |f| %>
|
|
|
|
|
<table id="bidding_table" border="0" width="400" style="margin-left: 40px;">
|
|
|
|
|
<tr>
|
|
|
|
|
<td><%= select_tag 'bid', options_for_select(@option), :name => 'bid', :class => 'grayline' %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<% if @bid.reward_type == 3 %>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><%= f.text_area :bid_message, :id => "bid_message", :required => true, :rows => 4, :cols => 40, :placeholder => l(:label_bid_reason_homework), :style => "resize: none;", :class => 'noline'%></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<% else %>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><%= f.text_area :bid_message, :id => "bid_message", :required => true, :rows => 4, :cols => 40, :placeholder => l(:label_bid_reason), :style => "resize: none;", :class => 'noline'%></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<% end %>
|
|
|
|
|
<tr>
|
|
|
|
|
<td align="right">
|
|
|
|
|
<%= submit_tag l(:button_add), :name => nil , :class => "bid_btn",
|
|
|
|
|
:onmouseout => "this.style.backgroundPosition = 'left top'",
|
|
|
|
|
:onmouseover => "this.style.backgroundPosition = 'left -30px'"%>
|
|
|
|
|
<%= submit_tag l(:button_cancel), :name => nil, :onclick => "cancel();",
|
|
|
|
|
:type => 'button', :class => "bid_btn", :onmouseout => "this.style.backgroundPosition = 'left top'",
|
|
|
|
|
:onmouseover => "this.style.backgroundPosition = 'left -30px'" %>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<div id = 'flash' style="float:left; width: 100%; display: none" ></div>
|
|
|
|
|
<div id="put-bid-form" style="display: none">
|
|
|
|
|
<%= form_for "bid_for_save", :remote=>true, :url => {:controller => 'bids', :action => 'add'},
|
|
|
|
|
:update => "bidding_project_list",
|
|
|
|
|
:complete => '$("#put-bid-form").hide();' do |f| %>
|
|
|
|
|
<table id="bidding_table" border="0" width="400" style="margin-left: 40px;">
|
|
|
|
|
<tr>
|
|
|
|
|
<td><%= select_tag 'bid', options_for_select(@option), :name => 'bid', :class => 'grayline' %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<% if @bid.reward_type == 3 %>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><%= f.text_area :bid_message, :id => "bid_message", :required => true, :rows => 4, :cols => 40, :placeholder => l(:label_bid_reason_homework), :style => "resize: none;", :class => 'noline'%></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<% else %>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><%= f.text_area :bid_message, :id => "bid_message", :required => true, :rows => 4, :cols => 40, :placeholder => l(:label_bid_reason), :style => "resize: none;", :class => 'noline'%></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<% end %>
|
|
|
|
|
<tr>
|
|
|
|
|
<td align="right">
|
|
|
|
|
<%= submit_tag l(:button_add), :name => nil , :class => "bid_btn",
|
|
|
|
|
:onmouseout => "this.style.backgroundPosition = 'left top'",
|
|
|
|
|
:onmouseover => "this.style.backgroundPosition = 'left -30px'"%>
|
|
|
|
|
<%= submit_tag l(:button_cancel), :name => nil, :onclick => "cancel();",
|
|
|
|
|
:type => 'button', :class => "bid_btn", :onmouseout => "this.style.backgroundPosition = 'left top'",
|
|
|
|
|
:onmouseover => "this.style.backgroundPosition = 'left -30px'" %>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<div id='bidding_project_list'>
|
|
|
|
|
<div id='bidding_project_list'>
|
|
|
|
|
<%= render :partial => 'project_list', :locals => {:bidding_project => @bidding_project,:bid => @bid} %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|