30 lines
1.2 KiB
Plaintext
30 lines
1.2 KiB
Plaintext
<div class="contextual">
|
|
<div class='icon icon-add' style="margin-right: 30px;">
|
|
<%= toggle_link "我要应标", 'put-bid-form', {:focus => 'project_id'} %>
|
|
</div>
|
|
</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" align='center' width="500">
|
|
<tr>
|
|
<td><%= select_tag 'bid', options_for_select(@option), :name => 'bid' %></td>
|
|
</tr>
|
|
<tr>
|
|
<td><%= f.text_area :bid_message, :id => "bid_message", :required => true, :rows => 4, :cols => 40, :value => "请输入应标理由", :style => "resize: none;"%></td>
|
|
</tr>
|
|
<tr>
|
|
<td><%= f.submit "add"%><%= link_to_function l(:button_cancel), '$("#put-bid-form").hide();'%></td>
|
|
</tr>
|
|
</table>
|
|
<% end %>
|
|
</div>
|
|
|
|
<table width="200px" border="0" style="padding-left: 15px">
|
|
<td class="font_lighter" style="font-size: 18px;">应标项目(<%= @bidding_project.count%>)</td>
|
|
</table>
|
|
<div id='bidding_project_list'>
|
|
<%= render :partial => 'project_list', :locals => {:bidding_project => @bidding_project} %>
|
|
</div>
|