62 lines
1.8 KiB
Plaintext
62 lines
1.8 KiB
Plaintext
<!-- fq -->
|
|
<%= form_tag(calls_path, :method => :get) do %>
|
|
<div class="project-search-block">
|
|
<table width="100%" valign="center">
|
|
<tr>
|
|
<td width="16%"><span style="margin-left:0px">
|
|
<% if @project_type == '1' %>
|
|
<%= l(:label_bids_task_list) %>
|
|
<% else %>
|
|
<%= l(:label_call_list)%>
|
|
<% end %></span></td>
|
|
<td valign="center"><% if User.current.logged? %>
|
|
|
|
<!-- <div class='icon icon-add'> -->
|
|
<% unless @project_type == '1' %>
|
|
<%= link_to(l(:label_new_call), {:controller => 'bids', :action => 'new_bid'}, :class => 'icon icon-add') %>
|
|
<% end %>
|
|
<!-- <%= toggle_link l(:label_new_call), 'put-bid-form', {:focus => 'project_id'} %> -->
|
|
<!-- </div> -->
|
|
<% end %></td>
|
|
|
|
<td align="right">
|
|
<div class="project-search">
|
|
<%= text_field_tag 'name', params[:name], :size => 30 %>
|
|
|
|
<%= hidden_field_tag 'reward_type', params[:reward_type] %>
|
|
<%= hidden_field_tag 'project_type', params[:project_type] %>
|
|
|
|
<%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
|
|
|
|
</div></td>
|
|
</tr></table>
|
|
</div>
|
|
<%end%>
|
|
|
|
<% if User.current.logged? %>
|
|
<div id="put-bid-form" style="display: none">
|
|
<%= render :partial => 'new_bid' %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= sort_bid(@s_state, @project_type)%>
|
|
|
|
<!-- <div class="pagination" style="border-bottom: 1px solid rgb(223,223,223); width: 95%; margin-left: 2%; margin-top: 15px" >
|
|
<ul style="margin-right:0px">
|
|
<li>
|
|
<%= link_to l(:label_sort_by_time), calls_path(:bid_sort_type => '0') %>
|
|
</li>
|
|
<li>
|
|
<%= link_to l(:label_sort_by_active), calls_path(:bid_sort_type => '1') %>
|
|
</li>
|
|
<!-- <li>
|
|
<%= link_to l(:label_sort_by_influence), calls_path(:bid_sort_type => '2') %>
|
|
</li> -->
|
|
<!-- </ul>
|
|
</div> -->
|
|
|
|
<div id="bid-show">
|
|
<%= render :partial => 'bid_show', :locals => {:bids => @bids, :bid_pages => @bid_pages} %>
|
|
</div>
|
|
|