新增需求结束方式
This commit is contained in:
parent
6ce27271e3
commit
006f381a05
|
@ -0,0 +1,79 @@
|
|||
|
||||
<% 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 %>
|
||||
<%= get_prize(b_project) %>
|
||||
<% 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.text_field :reward,:size=>"10",:require=>true,:maxlength => 10,:minlength=>1 %>
|
||||
<%= 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 %>
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
$('#reward_result_<%= @biding_project_id %>').html('<%= j(
|
||||
|
||||
if get_prize(@b_p).nil? or get_prize(@b_p) == ""
|
||||
puts '未评奖'
|
||||
else
|
||||
get_prize(@b_p)
|
||||
end
|
||||
|
||||
)
|
||||
%>')
|
||||
|
||||
$('#<%= @biding_project_id %>').hide()
|
|
@ -0,0 +1,5 @@
|
|||
class AddRewardToBidingProjects < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :biding_projects, :reward, :string
|
||||
end
|
||||
end
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 14.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 43363) -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
||||
<svg version="1.0" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
width="100px" height="93.615px" viewBox="0 0 100 93.615" enable-background="new 0 0 100 93.615" xml:space="preserve">
|
||||
<path d="M99.866,23.353C98.533,10.235,87.456,0,73.988,0C63.193,0,53.938,6.575,50,15.937C46.062,6.575,36.807,0,26.013,0
|
||||
C12.544,0,1.466,10.235,0.134,23.353C0.045,24.227,0,25.115,0,26.013c0,31.606,38.788,46.523,50,67.603h0
|
||||
c11.212-21.079,50-35.996,50-67.603C100,25.115,99.955,24.227,99.866,23.353z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 799 B |
Loading…
Reference in New Issue