2013-11-08 10:29:29 +08:00
|
|
|
<div class="top-content">
|
|
|
|
<%= form_tag(:controller => 'bids', :action => 'contest', :method => :get) do %>
|
|
|
|
<table width="940px">
|
2013-10-08 22:12:17 +08:00
|
|
|
<tr>
|
2014-01-02 21:20:57 +08:00
|
|
|
<td class="info_font" style="width: 220px; color: #15bccf"><%= l(:label_contest_innovate) %></td>
|
2013-11-08 15:59:08 +08:00
|
|
|
<td class="location-list"><strong><%= l(:label_user_location) %> :</strong></td>
|
2013-11-08 10:29:29 +08:00
|
|
|
<td rowspan="2">
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
<% unless User.current.user_extensions.identity == 1 %>
|
2013-10-19 15:39:53 +08:00
|
|
|
<%= link_to(l(:label_newtype_contest), {:controller => 'bids', :action => 'new_contest'}, :class => 'icon icon-add') %>
|
2013-11-08 10:29:29 +08:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
<td rowspan="2" >
|
2013-11-08 17:26:47 +08:00
|
|
|
<div class="project-search" style="float: right">
|
2013-11-08 10:29:29 +08:00
|
|
|
<%= text_field_tag 'name', params[:name], :size => 30 %>
|
|
|
|
<%= hidden_field_tag 'project_type', params[:project_type] %>
|
2013-11-08 17:26:47 +08:00
|
|
|
<%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
|
2013-11-08 10:29:29 +08:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-02-25 11:27:36 +08:00
|
|
|
<td style="padding-left: 8px"><a><%= link_to request.host()+"/contest", :controller => 'bids', :action => 'index' %> </a></td>
|
2013-11-08 10:29:29 +08:00
|
|
|
<td ><%=link_to l(:field_homepage), home_path %> > <%=link_to l(:label_contest_innovate), :controller => 'bids', :action => 'contest' %></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2013-10-08 22:12:17 +08:00
|
|
|
|
2013-12-19 19:54:39 +08:00
|
|
|
|
2013-10-08 22:12:17 +08:00
|
|
|
|
|
|
|
<!-- <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>
|
2014-07-04 10:22:35 +08:00
|
|
|
<%#= link_to l(:label_sort_by_time), calls_path(:bid_sort_type => '0') %>
|
2013-10-08 22:12:17 +08:00
|
|
|
</li>
|
|
|
|
<li>
|
2014-07-04 10:22:35 +08:00
|
|
|
<%#= link_to l(:label_sort_by_active), calls_path(:bid_sort_type => '1') %>
|
2013-10-08 22:12:17 +08:00
|
|
|
</li>
|
|
|
|
<!-- <li>
|
2014-07-04 10:22:35 +08:00
|
|
|
<%#= link_to l(:label_sort_by_influence), calls_path(:bid_sort_type => '2') %>
|
2013-10-08 22:12:17 +08:00
|
|
|
</li> -->
|
|
|
|
<!-- </ul>
|
|
|
|
</div> -->
|
2013-12-19 19:54:39 +08:00
|
|
|
<% if @bids.size > 0%>
|
|
|
|
<%= sort_contest(@s_state)%>
|
2013-10-08 22:12:17 +08:00
|
|
|
<div id="bid-show">
|
|
|
|
<%= render :partial => 'contest_show', :locals => {:bids => @bids, :bid_pages => @bid_pages} %>
|
|
|
|
</div>
|
2013-12-19 19:54:39 +08:00
|
|
|
<% else %>
|
|
|
|
<%= render :partial => "layouts/no_content"%>
|
|
|
|
<% end %>
|
2013-10-08 22:12:17 +08:00
|
|
|
|
2014-01-02 21:20:57 +08:00
|
|
|
<% html_title l(:label_contest_list)%>
|