parent
7acf73c4ca
commit
016ef25019
|
@ -15,7 +15,7 @@
|
||||||
<span style="float: right">
|
<span style="float: right">
|
||||||
<% if(User.current.logged? && (!Member.where('user_id = ? and course_id = ?', User.current.id, bid.courses.first.id).first.nil? && (Member.where('user_id = ? and course_id = ?', User.current.id, bid.courses.first.id).first.roles&Role.where('id = ? or id = ? or id =?',5, 10, 7)).size >0)) %>
|
<% if(User.current.logged? && (!Member.where('user_id = ? and course_id = ?', User.current.id, bid.courses.first.id).first.nil? && (Member.where('user_id = ? and course_id = ?', User.current.id, bid.courses.first.id).first.roles&Role.where('id = ? or id = ? or id =?',5, 10, 7)).size >0)) %>
|
||||||
<%# 提交作业按钮 %>
|
<%# 提交作业按钮 %>
|
||||||
<!--<%= link_to l(:label_commit_homework), '#OpenWindow', rel: 'leanModal', onclick: "showSubH(#{bid.id}, '#{bid.name}');" if User.current.member_of?(@course) %>-->
|
<!--<%#= link_to l(:label_commit_homework), '#OpenWindow', rel: 'leanModal', onclick: "showSubH(#{bid.id}, '#{bid.name}');" if User.current.member_of?(@course) %>-->
|
||||||
<% cur_user_homework = cur_user_homework_for_bid(bid) %>
|
<% cur_user_homework = cur_user_homework_for_bid(bid) %>
|
||||||
<% if cur_user_homework!= nil && cur_user_homework.count == 0 %>
|
<% if cur_user_homework!= nil && cur_user_homework.count == 0 %>
|
||||||
<%= link_to l(:label_commit_homework),new_homework_attach_path(bid) %>
|
<%= link_to l(:label_commit_homework),new_homework_attach_path(bid) %>
|
||||||
|
@ -41,19 +41,19 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2"><span class="font_lighter">
|
<td colspan="2"><span class="font_lighter">
|
||||||
<% @bidding_project = bid.biding_projects.all
|
<% bidding_project = bid.biding_projects.all
|
||||||
@temp = []
|
temp = []
|
||||||
@bidding_project.each do |pro|
|
bidding_project.each do |pro|
|
||||||
if pro.project && pro.project.project_status
|
if pro.project && pro.project.project_status
|
||||||
@temp << pro
|
temp << pro
|
||||||
end
|
end
|
||||||
@temp
|
temp
|
||||||
end
|
end
|
||||||
%>
|
%>
|
||||||
<% if bid.homework_type == 1%>
|
<% if bid.homework_type == 1%>
|
||||||
<%= l(:label_x_homework_project, :count => bid.homeworks.count) %>(<strong><%= link_to bid.homeworks.count, course_for_bid_path(bid.id) %></strong>)
|
<%= l(:label_x_homework_project, :count => bid.homeworks.count) %>(<strong><%= link_to bid.homeworks.count, course_for_bid_path(bid.id) %></strong>)
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= l(:label_x_homework_project, :count => @temp.count) %>(<strong><%= link_to @temp.count, course_for_bid_path(bid.id) %></strong>)
|
<%= l(:label_x_homework_project, :count => temp.count) %>(<strong><%= link_to temp.count, course_for_bid_path(bid.id) %></strong>)
|
||||||
<% end %></span>
|
<% end %></span>
|
||||||
<span class="font_lighter"><%= l(:label_x_responses, :count => bid.commit) %>(<strong><%= link_to bid.commit, respond_path(bid) %></strong>)</span>
|
<span class="font_lighter"><%= l(:label_x_responses, :count => bid.commit) %>(<strong><%= link_to bid.commit, respond_path(bid) %></strong>)</span>
|
||||||
<span style="float: right">
|
<span style="float: right">
|
||||||
|
@ -74,7 +74,7 @@
|
||||||
<%= bid.budget%></span></strong> <% elsif bid.reward_type == 2 %> <strong><%= l(:label_bids_reward_method) %><span style="color: #15bccf;font-family: 14px; font-family:' 微软雅黑'"><%= bid.budget%></span></strong>
|
<%= bid.budget%></span></strong> <% elsif bid.reward_type == 2 %> <strong><%= l(:label_bids_reward_method) %><span style="color: #15bccf;font-family: 14px; font-family:' 微软雅黑'"><%= bid.budget%></span></strong>
|
||||||
<% else %>
|
<% else %>
|
||||||
|
|
||||||
<% end %> <!-- <td style="color: rgb(255, 0, 0);"><strong><%= l(:label_price) %><%= l(:label_RMB_sign) %><%= bid.budget%></strong></td> --></td>
|
<% end %> <!-- <td style="color: rgb(255, 0, 0);"><strong><%#= l(:label_price) %><%#= l(:label_RMB_sign) %><%#= bid.budget%></strong></td> --></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" width="580px" ><span class="font_description">
|
<td colspan="2" width="580px" ><span class="font_description">
|
||||||
|
|
|
@ -13,7 +13,34 @@
|
||||||
<td width="500">
|
<td width="500">
|
||||||
<table border="0">
|
<table border="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td> <% if bid.reward_type.nil? or bid.reward_type == 1%> <strong><%= l(:label_bids_reward_method) %><span style="color: #ed8924;font-family: 14px; font-family: 微软雅黑"><%= l(:label_call_bonus) %> <%= l(:label_RMB_sign) %><%= bid.budget%></span></strong> <% elsif bid.reward_type == 2%> <strong><%= l(:label_bids_reward_method) %><span style="color: #15bccf;font-family: 14px; font-family: 微软雅黑"><%= bid.budget%></span></strong> <% else %> <!-- <strong><%= l(:label_bids_reward_method) %><span style="color: #00aa83;font-family: 14px; font-family: 微软雅黑"><%= l(:label_bids_credit) %> <%= bid.budget%> <%= l(:label_bids_credit_number) %></span></strong> --> <% end %> <!-- <td style="color: rgb(255, 0, 0);"><strong><%= l(:label_price) %><%= l(:label_RMB_sign) %><%= bid.budget%></strong></td> --></td>
|
<td>
|
||||||
|
<% if bid.reward_type.nil? or bid.reward_type == 1%>
|
||||||
|
<strong>
|
||||||
|
<%= l(:label_bids_reward_method) %>
|
||||||
|
<span style="color: #ed8924;font-family: 14px; font-family: '微软雅黑'">
|
||||||
|
<%= l(:label_call_bonus) %>
|
||||||
|
<%= l(:label_RMB_sign) %>
|
||||||
|
<%= bid.budget%>
|
||||||
|
</span>
|
||||||
|
</strong>
|
||||||
|
<% elsif bid.reward_type == 2%>
|
||||||
|
<strong>
|
||||||
|
<%= l(:label_bids_reward_method) %>
|
||||||
|
<span style="color: #15bccf;font-family: 14px; font-family: '微软雅黑'"><%= bid.budget%></span>
|
||||||
|
</strong>
|
||||||
|
<% else %> <!-- <strong>
|
||||||
|
<%#= l(:label_bids_reward_method) %>
|
||||||
|
<span style="color: #00aa83;font-family: 14px; font-family: 微软雅黑">
|
||||||
|
<%#= l(:label_bids_credit) %>
|
||||||
|
<%#= bid.budget%>
|
||||||
|
<%#= l(:label_bids_credit_number) %>
|
||||||
|
</span></strong> -->
|
||||||
|
<% end %>
|
||||||
|
<!-- <td style="color: rgb(255, 0, 0);">
|
||||||
|
<strong>
|
||||||
|
<%#= l(:label_price) %>
|
||||||
|
<%#= l(:label_RMB_sign) %>
|
||||||
|
<%#= bid.budget%></strong></td> --></td>
|
||||||
</tr>
|
</tr>
|
||||||
<% if bid.reward_type == 3 %>
|
<% if bid.reward_type == 3 %>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -60,6 +87,6 @@
|
||||||
<div class="pagination">
|
<div class="pagination">
|
||||||
<ul>
|
<ul>
|
||||||
<%= pagination_links_full bid_pages %>
|
<%= pagination_links_full bid_pages %>
|
||||||
<ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -32,13 +32,13 @@
|
||||||
<!-- <div class="pagination" style="border-bottom: 1px solid rgb(223,223,223); width: 95%; margin-left: 2%; margin-top: 15px" >
|
<!-- <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">
|
<ul style="margin-right:0px">
|
||||||
<li>
|
<li>
|
||||||
<%= link_to l(:label_sort_by_time), calls_path(:bid_sort_type => '0') %>
|
<%#= link_to l(:label_sort_by_time), calls_path(:bid_sort_type => '0') %>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<%= link_to l(:label_sort_by_active), calls_path(:bid_sort_type => '1') %>
|
<%#= link_to l(:label_sort_by_active), calls_path(:bid_sort_type => '1') %>
|
||||||
</li>
|
</li>
|
||||||
<!-- <li>
|
<!-- <li>
|
||||||
<%= link_to l(:label_sort_by_influence), calls_path(:bid_sort_type => '2') %>
|
<%#= link_to l(:label_sort_by_influence), calls_path(:bid_sort_type => '2') %>
|
||||||
</li> -->
|
</li> -->
|
||||||
<!-- </ul>
|
<!-- </ul>
|
||||||
</div> -->
|
</div> -->
|
||||||
|
|
Loading…
Reference in New Issue