|
|
|
@ -3,10 +3,7 @@
|
|
|
|
|
<div class="project-search-block">
|
|
|
|
|
<table width="100%" valign="center">
|
|
|
|
|
<tr>
|
|
|
|
|
<td width="16%"><span style="margin-left:0px"><%= l(:label_task_plural)%></span></td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<td width="16%"><span style="margin-left:0px"><%= l(:label_task_plural)%></span></td>
|
|
|
|
|
<td align="right">
|
|
|
|
|
<div class="project-search">
|
|
|
|
|
<%= text_field_tag 'student_id', params[:student_id], :size => 30 %>
|
|
|
|
@ -19,9 +16,6 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
<% bidding_project.each do |b_project|%>
|
|
|
|
|
<% if b_project.project %>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<table width="90%" border="0" align='center'>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
@ -38,7 +32,15 @@
|
|
|
|
|
<td colspan="2" valign="top" width="50%"><strong>
|
|
|
|
|
<%= link_to(b_project.project.name, project_path(b_project.project)) %>
|
|
|
|
|
|
|
|
|
|
</strong><a class="font_lighter"><%= l(:label_join_bidding)%></a>
|
|
|
|
|
</strong><a class="font_lighter">
|
|
|
|
|
<% if @bid.reward_type == 2 %>
|
|
|
|
|
<%= l(:label_join_contest)%>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if @bid.reward_type == 1 %>
|
|
|
|
|
<%= l(:label_join_bidding)%>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<!-- 如果需求到期 并且是该需求的管理员 -->
|
|
|
|
@ -142,7 +144,7 @@
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td valign="top"><span class="font_lighter">
|
|
|
|
|
<%= b_project.created_at%>
|
|
|
|
|
<%= format_time b_project.created_at%>
|
|
|
|
|
</span></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
@ -170,7 +172,13 @@
|
|
|
|
|
</tr>
|
|
|
|
|
<% else %>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><strong><%= l(:label_bidding_user) %>
|
|
|
|
|
<td><strong>
|
|
|
|
|
<% if @bid.reward_type == 2%>
|
|
|
|
|
<%= l(:label_contest_user) %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if @bid.reward_type == 1 %>
|
|
|
|
|
<%= l(:label_bidding_user) %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% unless b_project.user.nil? %>
|
|
|
|
|
<%= b_project.user.lastname %><%= b_project.user.firstname %>
|
|
|
|
|
<% end %></strong>
|
|
|
|
@ -185,7 +193,15 @@
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style=" word-wrap: break-word; word-break: break-all"><%= l(:label_bidding_reason) %><%= b_project.description %></td>
|
|
|
|
|
<td style=" word-wrap: break-word; word-break: break-all">
|
|
|
|
|
|
|
|
|
|
<% if @bid.reward_type == 2%>
|
|
|
|
|
<%= l(:label_contest_reason) %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if @bid.reward_type == 1 %>
|
|
|
|
|
<%= l(:label_bidding_reason) %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<%= b_project.description %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<% end %>
|
|
|
|
|
</table>
|
|
|
|
|