projects.html.erb
45 lines
| 2.2 KiB
| text/plain
|
TextLexer
|
r90 | <div class="contextual"> | ||
|
r3955 | <%= link_to l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add' %> | ||
|
r90 | </div> | ||
|
r10 | <h2><%=l(:label_project_plural)%></h2> | ||
|
r2 | |||
|
r1945 | <% form_tag({}, :method => :get) do %> | ||
|
r546 | <fieldset><legend><%= l(:label_filter_plural) %></legend> | ||
|
r7561 | <label for='status'><%= l(:field_status) %> :</label> | ||
|
r546 | <%= select_tag 'status', project_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;" %> | ||
|
r7561 | <label for='name'><%= l(:label_project) %>:</label> | ||
|
r1945 | <%= text_field_tag 'name', params[:name], :size => 30 %> | ||
<%= submit_tag l(:button_apply), :class => "small", :name => nil %> | ||||
|
r5031 | <%= link_to l(:button_clear), {:controller => 'admin', :action => 'projects'}, :class => 'icon icon-reload' %> | ||
|
r546 | </fieldset> | ||
<% end %> | ||||
| ||||
|
r3262 | <div class="autoscroll"> | ||
|
r105 | <table class="list"> | ||
<thead><tr> | ||||
|
r7239 | <th><%=l(:label_project)%></th> | ||
<th><%=l(:field_is_public)%></th> | ||||
<th><%=l(:field_created_on)%></th> | ||||
|
r2632 | <th></th> | ||
|
r105 | </tr></thead> | ||
<tbody> | ||||
|
r3485 | <% project_tree(@projects) do |project, level| %> | ||
|
r3966 | <tr class="<%= cycle("odd", "even") %> <%= project.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>"> | ||
|
r7239 | <td class="name"><span><%= link_to_project(project, {:action => 'settings'}, :title => project.short_description) %></span></td> | ||
<td align="center"><%= checked_image project.is_public? %></td> | ||||
<td align="center"><%= format_date(project.created_on) %></td> | ||||
|
r2632 | <td class="buttons"> | ||
|
r2706 | <%= link_to(l(:button_archive), { :controller => 'projects', :action => 'archive', :id => project, :status => params[:status] }, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-lock') if project.active? %> | ||
<%= link_to(l(:button_unarchive), { :controller => 'projects', :action => 'unarchive', :id => project, :status => params[:status] }, :method => :post, :class => 'icon icon-unlock') if !project.active? && (project.parent.nil? || project.parent.active?) %> | ||||
|
r2608 | <%= link_to(l(:button_copy), { :controller => 'projects', :action => 'copy', :id => project }, :class => 'icon icon-copy') %> | ||
|
r8032 | <%= link_to(l(:button_delete), project_path(project), :method => :delete, :class => 'icon icon-del') %> | ||
|
r330 | </td> | ||
|
r2 | </tr> | ||
<% end %> | ||||
|
r105 | </tbody> | ||
|
r2 | </table> | ||
|
r3262 | </div> | ||
|
r2 | |||
|
r1019 | <% html_title(l(:label_project_plural)) -%> | ||