To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / admin / .svn / text-base / projects.rhtml.svn-base @ 442:753f1380d6bc
History | View | Annotate | Download (2.19 KB)
| 1 | 0:513646585e45 | Chris | <div class="contextual"> |
|---|---|---|---|
| 2 | 22:40f7cfd4df19 | chris | <%= link_to l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add' %>
|
| 3 | 0:513646585e45 | Chris | </div> |
| 4 | |||
| 5 | <h2><%=l(:label_project_plural)%></h2> |
||
| 6 | |||
| 7 | <% form_tag({}, :method => :get) do %>
|
||
| 8 | <fieldset><legend><%= l(:label_filter_plural) %></legend> |
||
| 9 | <label><%= l(:field_status) %> :</label> |
||
| 10 | <%= select_tag 'status', project_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;" %> |
||
| 11 | <label><%= l(:label_project) %>:</label> |
||
| 12 | <%= text_field_tag 'name', params[:name], :size => 30 %> |
||
| 13 | <%= submit_tag l(:button_apply), :class => "small", :name => nil %> |
||
| 14 | 441:cbce1fd3b1b7 | Chris | <%= link_to l(:button_clear), {:controller => 'admin', :action => 'projects'}, :class => 'icon icon-reload' %>
|
| 15 | 0:513646585e45 | Chris | </fieldset> |
| 16 | <% end %> |
||
| 17 | |
||
| 18 | |||
| 19 | <div class="autoscroll"> |
||
| 20 | <table class="list"> |
||
| 21 | <thead><tr> |
||
| 22 | <th><%=l(:label_project)%></th> |
||
| 23 | <th><%=l(:field_is_public)%></th> |
||
| 24 | <th><%=l(:field_created_on)%></th> |
||
| 25 | <th></th> |
||
| 26 | </tr></thead> |
||
| 27 | <tbody> |
||
| 28 | <% project_tree(@projects) do |project, level| %> |
||
| 29 | 22:40f7cfd4df19 | chris | <tr class="<%= cycle("odd", "even") %> <%= project.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
|
| 30 | 37:94944d00e43c | chris | <td class="name"><span><%= link_to_project(project, {:action => 'settings'}, :title => project.short_description) %></span></td>
|
| 31 | 0:513646585e45 | Chris | <td align="center"><%= checked_image project.is_public? %></td> |
| 32 | <td align="center"><%= format_date(project.created_on) %></td> |
||
| 33 | <td class="buttons"> |
||
| 34 | <%= 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? %>
|
||
| 35 | <%= 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?) %>
|
||
| 36 | <%= link_to(l(:button_copy), { :controller => 'projects', :action => 'copy', :id => project }, :class => 'icon icon-copy') %>
|
||
| 37 | 22:40f7cfd4df19 | chris | <%= link_to(l(:button_delete), project_destroy_confirm_path(project), :class => 'icon icon-del') %> |
| 38 | 0:513646585e45 | Chris | </td> |
| 39 | </tr> |
||
| 40 | <% end %> |
||
| 41 | </tbody> |
||
| 42 | </table> |
||
| 43 | </div> |
||
| 44 | |||
| 45 | <% html_title(l(:label_project_plural)) -%> |