You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

projects.html.erb 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <div class="contextual">
  2. <%= link_to l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add' %>
  3. </div>
  4. <h2><%=l(:label_project_plural)%></h2>
  5. <%= form_tag({}, :method => :get) do %>
  6. <fieldset><legend><%= l(:label_filter_plural) %></legend>
  7. <label for='status'><%= l(:field_status) %> :</label>
  8. <%= select_tag 'status', project_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;" %>
  9. <label for='name'><%= l(:label_project) %>:</label>
  10. <%= text_field_tag 'name', params[:name], :size => 30 %>
  11. <%= submit_tag l(:button_apply), :class => "small", :name => nil %>
  12. <%= link_to l(:button_clear), {:controller => 'admin', :action => 'projects'}, :class => 'icon icon-reload' %>
  13. </fieldset>
  14. <% end %>
  15. &nbsp;
  16. <div class="autoscroll">
  17. <table class="list">
  18. <thead><tr>
  19. <th><%=l(:label_project)%></th>
  20. <th><%=l(:field_is_public)%></th>
  21. <th><%=l(:field_created_on)%></th>
  22. <th></th>
  23. </tr></thead>
  24. <tbody>
  25. <% project_tree(@projects) do |project, level| %>
  26. <tr class="<%= cycle("odd", "even") %> <%= project.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
  27. <td class="name"><span><%= link_to_project(project, {:action => 'settings'}, :title => project.short_description) %></span></td>
  28. <td align="center"><%= checked_image project.is_public? %></td>
  29. <td align="center"><%= format_date(project.created_on) %></td>
  30. <td class="buttons">
  31. <%= 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? %>
  32. <%= 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?) %>
  33. <%= link_to(l(:button_copy), { :controller => 'projects', :action => 'copy', :id => project }, :class => 'icon icon-copy') %>
  34. <%= link_to(l(:button_delete), project_path(project), :method => :delete, :class => 'icon icon-del') %>
  35. </td>
  36. </tr>
  37. <% end %>
  38. </tbody>
  39. </table>
  40. </div>
  41. <% html_title(l(:label_project_plural)) -%>