_list.html.erb
63 lines
| 2.5 KiB
| text/plain
|
TextLexer
|
r15554 | <%= form_tag({}, :data => {:cm_url => time_entries_context_menu_path}) do -%> | ||
|
r15247 | <%= hidden_field_tag 'back_url', url_for(:params => request.query_parameters), :id => nil %> | ||
|
r7862 | <div class="autoscroll"> | ||
|
r15867 | <table class="list odd-even time-entries"> | ||
|
r1159 | <thead> | ||
|
r10745 | <tr> | ||
<th class="checkbox hide-when-print"> | ||||
|
r14347 | <%= check_box_tag 'check_all', '', false, :class => 'toggle-selection', | ||
|
r10745 | :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %> | ||
</th> | ||||
<% @query.inline_columns.each do |column| %> | ||||
<%= column_header(column) %> | ||||
<% end %> | ||||
<th></th> | ||||
</tr> | ||||
|
r1159 | </thead> | ||
<tbody> | ||||
|
r15267 | <% grouped_query_results(entries, @query, @entry_count_by_group) do |entry, group_name, group_count, group_totals| -%> | ||
<% if group_name %> | ||||
|
r15670 | <% reset_cycle %> | ||
|
r15267 | <tr class="group open"> | ||
<td colspan="<%= @query.inline_columns.size + 2 %>"> | ||||
<span class="expander" onclick="toggleRowGroup(this);"> </span> | ||||
<span class="name"><%= group_name %></span> | ||||
<% if group_count %> | ||||
<span class="count"><%= group_count %></span> | ||||
<% end %> | ||||
<span class="totals"><%= group_totals %></span> | ||||
<%= link_to_function("#{l(:button_collapse_all)}/#{l(:button_expand_all)}", | ||||
"toggleAllRowGroups(this)", :class => 'toggle-all') %> | ||||
</td> | ||||
</tr> | ||||
<% end %> | ||||
|
r15670 | <tr id="time-entry-<%= entry.id %>" class="time-entry <%= cycle("odd", "even") %> hascontextmenu"> | ||
|
r10745 | <td class="checkbox hide-when-print"><%= check_box_tag("ids[]", entry.id, false, :id => nil) %></td> | ||
<%= raw @query.inline_columns.map {|column| "<td class=\"#{column.css_classes}\">#{column_content(column, entry)}</td>"}.join %> | ||||
|
r12038 | <td class="buttons"> | ||
|
r10745 | <% if entry.editable_by?(User.current) -%> | ||
|
r14889 | <%= link_to l(:button_edit), edit_time_entry_path(entry), | ||
|
r14686 | :title => l(:button_edit), | ||
|
r14889 | :class => 'icon-only icon-edit' %> | ||
<%= link_to l(:button_delete), time_entry_path(entry), | ||||
|
r14686 | :data => {:confirm => l(:text_are_you_sure)}, | ||
:method => :delete, | ||||
:title => l(:button_delete), | ||||
:class => 'icon-only icon-del' %> | ||||
|
r10745 | <% end -%> | ||
</td> | ||||
</tr> | ||||
|
r15267 | <% @query.block_columns.each do |column| | ||
if (text = column_content(column, issue)) && text.present? -%> | ||||
<tr class="<%= current_cycle %>"> | ||||
<td colspan="<%= @query.inline_columns.size + 1 %>" class="<%= column.css_classes %>"><%= text %></td> | ||||
</tr> | ||||
<% end -%> | ||||
<% end -%> | ||||
|
r1159 | <% end -%> | ||
|
r1304 | </tbody> | ||
|
r1159 | </table> | ||
|
r7862 | </div> | ||
|
r5194 | <% end -%> | ||
|
r15554 | <%= context_menu %> | ||