socialforge/app/views/bids/index.html.erb

65 lines
2.0 KiB
Plaintext
Raw Normal View History

2013-08-04 10:59:25 +08:00
<!-- fq -->
<%= form_tag(calls_path, :method => :get) do %>
2013-08-06 21:43:06 +08:00
<div class="project-search-block">
<table width="100%" valign="center">
<tr>
2013-09-29 19:46:59 +08:00
<td width="16%"><span style="margin-left:0px">
<% if @project_type == '1' %>
作业列表
<% else %>
<%= l(:label_call_list)%>
<% end %></span></td>
<td valign="center"><% if User.current.logged? %>
2013-08-20 16:32:45 +08:00
<!-- <div class='icon icon-add'> -->
2013-09-29 19:46:59 +08:00
<% if @project_type == '0' %>
<%= link_to(l(:label_new_call), {:controller => 'bids', :action => 'new_bid'}, :class => 'icon_enterprise icon_enterprise-add') %>
<% else %>
2013-08-20 16:32:45 +08:00
<%= link_to(l(:label_new_call), {:controller => 'bids', :action => 'new_bid'}, :class => 'icon icon-add') %>
2013-09-29 19:46:59 +08:00
<% end %>
2013-08-20 16:32:45 +08:00
<!-- <%= 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 %>
2013-09-29 19:46:59 +08:00
<% if @project_type == '0'%>
<%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
<% else %>
<%= submit_tag l(:label_search), :class => "small", :name => nil %>
2013-09-29 19:46:59 +08:00
<% end %>
</div></td>
</tr></table>
2013-08-06 21:43:06 +08:00
</div>
<%end%>
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-09-29 19:46:59 +08:00
<% if @project_type == '0'%>
<%= sort_bid_enterprise(@s_state, @project_type)%>
<% else %>
<%= sort_bid(@s_state, @project_type)%>
<% end %>
2013-09-02 12:49:17 +08:00
<!-- <div class="pagination" style="border-bottom: 1px solid rgb(223,223,223); width: 95%; margin-left: 2%; margin-top: 15px" >
2013-08-28 20:16:40 +08:00
<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> -->
2013-09-02 12:49:17 +08:00
<!-- </ul>
</div> -->
2013-08-28 20:16:40 +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