|
|
|
@ -6,12 +6,21 @@
|
|
|
|
|
<div class="project-search-block">
|
|
|
|
|
<table width="100%" valign="center">
|
|
|
|
|
<tr>
|
|
|
|
|
<td width="16%"><span style="margin-left:0px"><%= l(:label_project_plural)%></span></td>
|
|
|
|
|
<td width="16%"><span style="margin-left:0px">
|
|
|
|
|
<% if params[:project_type] == '0'%>
|
|
|
|
|
<%= l(:label_project_plural)%>
|
|
|
|
|
</span></td>
|
|
|
|
|
<td valign="center"><%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %></td>
|
|
|
|
|
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= l(:label_new_course)%>
|
|
|
|
|
|
|
|
|
|
</span></td>
|
|
|
|
|
<td valign="center"><%= link_to(l(:label_course_new), {:controller => 'projects', :action => 'new', :course => 1, :project_type => @project_type}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %></td>
|
|
|
|
|
<% end %>
|
|
|
|
|
<td align="right">
|
|
|
|
|
<div class="project-search">
|
|
|
|
|
<%= text_field_tag 'name', params[:name], :size => 30 %>
|
|
|
|
|
<%= hidden_field_tag 'project_type', params[:project_type]%>
|
|
|
|
|
<%= submit_tag l(:label_search), :class => "small", :name => nil %>
|
|
|
|
|
</div></td>
|
|
|
|
|
</tr>
|
|
|
|
|