|
|
|
@ -9,29 +9,29 @@
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<table width="100%" border="0" style="padding-left: 15px">
|
|
|
|
|
<td width="80%" class="font_lighter" style="font-size: 15px;"><%= l(:label_homework_project) %>(<%= bidding_project.count%>)</td>
|
|
|
|
|
<td width="20%">
|
|
|
|
|
<% 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) %>
|
|
|
|
|
<table width="100%" border="0" style="padding-left: 15px">
|
|
|
|
|
<td width="80%" class="font_lighter" style="font-size: 15px;"><%= l(:label_homework_project) %>(<%= bidding_project.count%>)</td>
|
|
|
|
|
<td width="20%">
|
|
|
|
|
<% 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) %>
|
|
|
|
|
|
|
|
|
|
<div class='icon icon-add'>
|
|
|
|
|
<%= toggle_link l(:label_commit_homework), 'put-bid-form' %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
</td>
|
|
|
|
|
</table>
|
|
|
|
|
<div class='icon icon-add'>
|
|
|
|
|
<%= toggle_link l(:label_commit_homework), 'put-bid-form' %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
</td>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% else %>
|
|
|
|
|
<table width="100%" border="0" style="padding-left: 15px">
|
|
|
|
|
<td width="80%" class="font_lighter" style="font-size: 15px;"><%= l(:label_bidding_project) %>(<%= bidding_project.count%>)</td>
|
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
|
<td width="20%">
|
|
|
|
|
<div class='icon icon-add'>
|
|
|
|
|
<%= toggle_link l(:button_bidding), 'put-bid-form' %>
|
|
|
|
|
</div></td>
|
|
|
|
|
<% end %>
|
|
|
|
|
</table>
|
|
|
|
|
<table width="100%" border="0" style="padding-left: 15px">
|
|
|
|
|
<td width="80%" class="font_lighter" style="font-size: 15px;"><%= l(:label_bidding_project) %>(<%= bidding_project.count%>)</td>
|
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
|
<td width="20%">
|
|
|
|
|
<div class='icon icon-add'>
|
|
|
|
|
<%= toggle_link l(:button_bidding), 'put-bid-form' %>
|
|
|
|
|
</div></td>
|
|
|
|
|
<% end %>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|