projects.rhtml
48 lines
| 2.2 KiB
| text/html+ruby
|
RhtmlLexer
|
r90 | <div class="contextual"> | ||
|
r154 | <%= link_to l(:label_project_new), {:controller => 'projects', :action => 'add'}, :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 %> | ||||
| ||||
|
r105 | <table class="list"> | ||
<thead><tr> | ||||
|
r2302 | <th><%=l(:label_project)%></th> | ||
|
r330 | <th><%=l(:field_description)%></th> | ||
|
r2302 | <th><%=l(:field_is_public)%></th> | ||
<th><%=l(:field_created_on)%></th> | ||||
|
r105 | <th></th> | ||
|
r546 | <th></th> | ||
|
r105 | </tr></thead> | ||
<tbody> | ||||
|
r5 | <% for project in @projects %> | ||
|
r2302 | <tr class="<%= cycle("odd", "even") %> <%= css_project_classes(project) %>"> | ||
<td class="name" style="padding-left: <%= project.level %>em;"><%= project.active? ? link_to(h(project.name), :controller => 'projects', :action => 'settings', :id => project) : h(project.name) %></td> | ||||
<td><%= textilizable project.short_description, :project => project %></td> | ||||
<td align="center"><%= image_tag 'true.png' if project.is_public? %></td> | ||||
<td align="center"><%= format_date(project.created_on) %></td> | ||||
|
r546 | <td align="center" style="width:10%"> | ||
<small> | ||||
|
r600 | <%= link_to(l(:button_archive), { :controller => 'projects', :action => 'archive', :id => project }, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-lock') if project.active? %> | ||
|
r546 | <%= link_to(l(:button_unarchive), { :controller => 'projects', :action => 'unarchive', :id => project }, :method => :post, :class => 'icon icon-unlock') if !project.active? && (project.parent.nil? || project.parent.active?) %> | ||
</small> | ||||
</td> | ||||
<td align="center" style="width:10%"> | ||||
<small><%= link_to(l(:button_delete), { :controller => 'projects', :action => 'destroy', :id => project }, :class => 'icon icon-del') %></small> | ||||
|
r330 | </td> | ||
|
r2 | </tr> | ||
<% end %> | ||||
|
r105 | </tbody> | ||
|
r2 | </table> | ||
|
r1019 | <% html_title(l(:label_project_plural)) -%> | ||