You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
3.0 KiB
92 lines
3.0 KiB
|
|
<% bidding_project.each do |b_project|%>
|
|
<table width="90%" border="0" align='center'>
|
|
<tr>
|
|
<td>
|
|
<table width="660px" border="0" align='center'>
|
|
<tr>
|
|
<td width="50px" valign="top" colspan="2" align="middle">
|
|
<div style="width: 50px; height: 50px;">
|
|
<%= link_to image_tag(url_to_avatar(b_project.project), :class => 'avatar3'), :class => "avatar" %>
|
|
</div></td>
|
|
<td width="60%" valign="top">
|
|
<table width="100%" valign="top">
|
|
<tr>
|
|
<td colspan="2" valign="top"><strong>
|
|
<%= link_to(b_project.project.name, project_path(b_project.project)) %>
|
|
</strong><a class="font_lighter"><%= l(:label_join_bidding)%></a>
|
|
</td>
|
|
|
|
<!-- 如果需求到期 并且是该需求的管理员 -->
|
|
|
|
<td style="color: red;" align="right"><strong><span id="reward_result_<%=b_project.id%>">
|
|
<% if get_prize(b_project).nil? or get_prize(b_project) == "" %>
|
|
未评奖
|
|
<% else %>
|
|
<% case get_prize(b_project) %>
|
|
<% when '0' %>
|
|
一等奖
|
|
<% when '1' %>
|
|
二等奖
|
|
<% when '2' %>
|
|
入围奖
|
|
<%end%>
|
|
<% end %>
|
|
</span></strong>
|
|
</td>
|
|
|
|
<!-- 评价显隐控制按钮-->
|
|
<% if User.current.id == @bid.author_id %>
|
|
<td align="">
|
|
<span> <%= toggle_link '评价', b_project.id.to_s %></span>
|
|
</td>
|
|
<% end %>
|
|
</tr>
|
|
<tr></tr>
|
|
<tr>
|
|
<td valign="top"><%= b_project.project.description %></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td valign="top"><a class="font_lighter">
|
|
<%= b_project.created_at%>
|
|
</a></td>
|
|
</tr>
|
|
</table></td>
|
|
<!-- 评价应标项目的表单 -->
|
|
<td align="right">
|
|
<span style="display: none" id = '<%= b_project.id %>'>
|
|
|
|
<%= form_for "set_reward",:remote=>true,:url=>set_reward_path do |f| %>
|
|
<%= f.text_field :b_id,:style => "display:none",:value => b_project.id,:size=>"0" %>
|
|
|
|
<%= f.select :reward,"<option value = '0'>#{l(:label_first_reward)}</option> <option value = '1'>#{l(:label_second_reward)}</option> <option value = '2'>#{l(:label_comfort_reward)}</option>"
|
|
.html_safe %>
|
|
|
|
|
|
<%= f.submit "提交",:class=>"submit" %>
|
|
|
|
<% end %>
|
|
</span>
|
|
</td>
|
|
|
|
<td width="30%">
|
|
<div class="bid-user-message" style="border-left: 1px solid rgb(225, 225, 225); margin-left: 20px; padding-left: 20px;">
|
|
<table width="100%">
|
|
<tr>
|
|
<td><%= l(:label_bidding_user) %>
|
|
<%= link_to(b_project.user.name, user_path(b_project.user)) %>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style=" word-wrap: break-word; word-break: break-all"><%= l(:label_bidding_reason) %><%= b_project.description %></td>
|
|
</tr>
|
|
</table>
|
|
</div></td>
|
|
</tr>
|
|
</table></td>
|
|
</tr>
|
|
</table>
|
|
<% end %>
|
|
|