projects.rhtml
44 lines
| 2.1 KiB
| text/html+ruby
|
RhtmlLexer
|
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> | ||
<label><%= l(:field_status) %> :</label> | ||||
<%= select_tag 'status', project_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;" %> | ||||
|
r1945 | <label><%= l(:label_project) %>:</label> | ||
<%= text_field_tag 'name', params[:name], :size => 30 %> | ||||
<%= submit_tag l(:button_apply), :class => "small", :name => nil %> | ||||
|
r546 | </fieldset> | ||
<% end %> | ||||
| ||||
|
r3262 | <div class="autoscroll"> | ||
|
r105 | <table class="list"> | ||
<thead><tr> | ||||
|
r2302 | <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 %>"> | ||
|
r4157 | <td class="name"><span><%= link_to_project(project, {:action => 'settings'}, :title => project.short_description) %></span></td> | ||
|
r3486 | <td align="center"><%= checked_image project.is_public? %></td> | ||
|
r2302 | <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') %> | ||
|
r3957 | <%= link_to(l(:button_delete), project_destroy_confirm_path(project), :class => 'icon icon-del') %> | ||
|
r330 | </td> | ||
|
r2 | </tr> | ||
<% end %> | ||||
|
r105 | </tbody> | ||
|
r2 | </table> | ||
|
r3262 | </div> | ||
|
r2 | |||
|
r1019 | <% html_title(l(:label_project_plural)) -%> | ||