29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
Plaintext
<!-- fq -->
|
|
|
|
<div class="project-search-block">
|
|
<table width="100%" valign="center">
|
|
<tr>
|
|
<td width="16%"><span style="margin-left:0px"><%= l(:label_course_homework_list)%></span></td>
|
|
<td valign="center"><% if User.current.logged? && (User.current.admin? || (!Member.where('user_id = ? and project_id = ?', User.current.id, @project.id).first.nil? && (Member.where('user_id = ? and project_id = ?', User.current.id, @project.id).first.roles&Role.where('id = ? or id = ?', 3, 7)).size >0))%>
|
|
|
|
<!-- <div class='icon icon-add'> -->
|
|
<%= link_to(l(:label_course_homework_new), {:controller => 'projects', :action => 'new_homework'}, :class => 'icon icon-add') %>
|
|
<!-- <%= toggle_link l(:label_new_call), 'put-bid-form', {:focus => 'project_id'} %> -->
|
|
<!-- </div> -->
|
|
<% end %></td>
|
|
|
|
|
|
<td align="right">
|
|
<div class="project-search">
|
|
<%= text_field_tag 'name', params[:name], :size => 30 %>
|
|
<%= submit_tag l(:label_search), :class => "small", :name => nil %>
|
|
</div></td>
|
|
</tr></table>
|
|
</div>
|
|
|
|
|
|
<div id="bid-show">
|
|
<%= render :partial => 'bids/bid_homework_show', :locals => {:bids => @bids, :bid_pages => @bid_pages} %>
|
|
</div>
|
|
|