2013-08-04 10:59:25 +08:00
|
|
|
<!-- fq -->
|
2013-08-08 22:27:58 +08:00
|
|
|
<%= render_flash_messages %>
|
2013-10-24 08:24:56 +08:00
|
|
|
<% if @bid.reward_type == 3 %>
|
2013-10-26 15:04:00 +08:00
|
|
|
<% if User.current.logged?%>
|
|
|
|
<% if User.current.user_extensions.identity == 1 %>
|
|
|
|
<div class="font_lighter">
|
|
|
|
<p><%= l(:label_homework_prompt) %></p>
|
|
|
|
<P><%= l(:label_homework_prompt_content) %></P>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2013-10-14 22:40:34 +08:00
|
|
|
<% end %>
|
2013-09-29 19:58:57 +08:00
|
|
|
<table width="1000px" border="0" style="padding-left: 15px">
|
2013-10-19 09:35:14 +08:00
|
|
|
<td class="font_lighter" style="font-size: 15px;"><%= l(:label_homework_project) %>(<%= bidding_project.count%>)</td>
|
2013-09-16 08:49:39 +08:00
|
|
|
<td>
|
2013-10-14 22:40:34 +08:00
|
|
|
<% if User.current.logged? && (!Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.nil? && (Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.roles&Role.where('id = ? or id = ?', 5, 7)).size >0) %>
|
|
|
|
|
2013-09-16 08:49:39 +08:00
|
|
|
<div class='icon icon-add'>
|
2013-10-09 16:46:56 +08:00
|
|
|
<%= toggle_link l(:label_commit_homework), 'put-bid-form' %>
|
2013-09-23 08:44:48 +08:00
|
|
|
</div>
|
2013-10-09 16:14:11 +08:00
|
|
|
<% end %>
|
2013-10-14 22:40:34 +08:00
|
|
|
</td>
|
2013-09-16 08:49:39 +08:00
|
|
|
</table>
|
2013-10-30 10:45:37 +08:00
|
|
|
|
2013-10-09 16:14:11 +08:00
|
|
|
|
|
|
|
<% else %>
|
|
|
|
<table width="1000px" border="0" style="padding-left: 15px">
|
2013-10-19 09:35:14 +08:00
|
|
|
<td class="font_lighter" style="font-size: 15px;"><%= l(:label_bidding_project) %>(<%= bidding_project.count%>)</td>
|
2013-10-09 16:14:11 +08:00
|
|
|
<% if User.current.logged? %>
|
|
|
|
<td>
|
|
|
|
<div class='icon icon-add'>
|
|
|
|
<%= toggle_link l(:button_bidding), 'put-bid-form' %>
|
|
|
|
</div></td>
|
|
|
|
<% end %>
|
|
|
|
</table>
|
|
|
|
|
2013-10-30 10:45:37 +08:00
|
|
|
|
2013-08-01 10:33:49 +08:00
|
|
|
<% end %>
|
2013-10-19 09:35:14 +08:00
|
|
|
<%= render :partial=> "list_projects",:locals => {:bidding_project => bidding_project,:bid => @bid }%>
|