%= render_flash_messages %> <% if @bid.reward_type == 3 %> <% if User.current.logged?%> <% if User.current.user_extensions.identity == 1 %>
<%= l(:label_homework_prompt) %>
<%= l(:label_homework_prompt_content) %>
<%= l(:label_homework_project) %>(<%= bidding_project.count%>) |
<% 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 = ? or id = ?',5, 10, 7)).size >0) %>
<%= toggle_link l(:label_commit_homework), 'put-bid-form' %>
<% end %>
|
<%= l(:label_bidding_project) %>(<%= bidding_project.count%>) | <% if User.current.logged? %>
<%= toggle_link l(:button_bidding), 'put-bid-form' %>
|
<% end %>