2013-08-04 10:59:25 +08:00
|
|
|
<!-- fq -->
|
2013-08-09 16:26:26 +08:00
|
|
|
<% if User.current.logged? %>
|
|
|
|
<div class="contextual" style="padding-top:10px;padding-right:10px;">
|
|
|
|
<div class='icon icon-add'>
|
|
|
|
<%= toggle_link l(:button_new_bid), 'put-bid-form', {:focus => 'project_id'} %>
|
|
|
|
</div></div> <% end %>
|
2013-08-06 21:43:06 +08:00
|
|
|
<%= form_tag(bids_path, :method => :get) do %>
|
|
|
|
<div class="project-search-block">
|
|
|
|
<span><%=l(:label_bid_plural)%></span>
|
|
|
|
<div class="project-search">
|
|
|
|
<%= text_field_tag 'name', params[:name], :size => 30 %>
|
|
|
|
<%= submit_tag l(:label_search), :class => "small", :name => nil %>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-08-07 16:45:04 +08:00
|
|
|
<%end%>
|
2013-08-08 10:04:44 +08:00
|
|
|
|
2013-08-09 16:26:26 +08:00
|
|
|
|
2013-08-08 10:04:44 +08:00
|
|
|
<% if User.current.logged? %>
|
|
|
|
<div id="put-bid-form" style="display: none">
|
|
|
|
<%= render :partial => 'new_bid' %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2013-08-04 10:11:38 +08:00
|
|
|
<div id="bid-show">
|
|
|
|
<%= render :partial => 'bid_show', :locals => {:bids => @bids, :bid_pages => @bid_pages} %>
|
|
|
|
</div>
|
2013-08-01 10:33:49 +08:00
|
|
|
|