annotate app/views/admin/projects.rhtml @ 22:40f7cfd4df19

* Update to SVN trunk rev 4173
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Fri, 24 Sep 2010 14:06:04 +0100
parents 1d32c0a0efbf
children 94944d00e43c
rev   line source
Chris@0 1 <div class="contextual">
chris@22 2 <%= link_to l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add' %>
Chris@0 3 </div>
Chris@0 4
Chris@0 5 <h2><%=l(:label_project_plural)%></h2>
Chris@0 6
Chris@0 7 <% form_tag({}, :method => :get) do %>
Chris@0 8 <fieldset><legend><%= l(:label_filter_plural) %></legend>
Chris@0 9 <label><%= l(:field_status) %> :</label>
Chris@0 10 <%= select_tag 'status', project_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;" %>
Chris@0 11 <label><%= l(:label_project) %>:</label>
Chris@0 12 <%= text_field_tag 'name', params[:name], :size => 30 %>
Chris@0 13 <%= submit_tag l(:button_apply), :class => "small", :name => nil %>
Chris@0 14 </fieldset>
Chris@0 15 <% end %>
Chris@0 16 &nbsp;
Chris@0 17
Chris@0 18 <div class="autoscroll">
Chris@0 19 <table class="list">
Chris@0 20 <thead><tr>
Chris@0 21 <th><%=l(:label_project)%></th>
Chris@0 22 <th><%=l(:field_description)%></th>
Chris@0 23 <th><%=l(:field_is_public)%></th>
Chris@0 24 <th><%=l(:field_created_on)%></th>
Chris@0 25 <th></th>
Chris@0 26 </tr></thead>
Chris@0 27 <tbody>
Chris@0 28 <% project_tree(@projects) do |project, level| %>
chris@22 29 <tr class="<%= cycle("odd", "even") %> <%= project.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
Chris@14 30 <td class="name"><%= link_to_project(project, :action => 'settings') %></td>
Chris@0 31 <td><%= textilizable project.short_description, :project => project %></td>
Chris@0 32 <td align="center"><%= checked_image project.is_public? %></td>
Chris@0 33 <td align="center"><%= format_date(project.created_on) %></td>
Chris@0 34 <td class="buttons">
Chris@0 35 <%= 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? %>
Chris@0 36 <%= 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?) %>
Chris@0 37 <%= link_to(l(:button_copy), { :controller => 'projects', :action => 'copy', :id => project }, :class => 'icon icon-copy') %>
chris@22 38 <%= link_to(l(:button_delete), project_destroy_confirm_path(project), :class => 'icon icon-del') %>
Chris@0 39 </td>
Chris@0 40 </tr>
Chris@0 41 <% end %>
Chris@0 42 </tbody>
Chris@0 43 </table>
Chris@0 44 </div>
Chris@0 45
Chris@0 46 <% html_title(l(:label_project_plural)) -%>