To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / timelog / _list.html.erb @ 1531:ae8145b28b2b

History | View | Annotate | Download (1.49 KB)

1
<%= form_tag({}) do -%>
2
<%= hidden_field_tag 'back_url', url_for(params) %>
3
<div class="autoscroll">
4
<table class="list time-entries">
5
<thead>
6
  <tr>
7
    <th class="checkbox hide-when-print">
8
      <%= link_to image_tag('toggle_check.png'),
9
        {},
10
        :onclick => 'toggleIssuesSelection(this); return false;',
11
        :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %>
12
    </th>
13
    <% @query.inline_columns.each do |column| %>
14
      <%= column_header(column) %>
15
    <% end %>
16
    <th></th>
17
  </tr>
18
</thead>
19
<tbody>
20
<% entries.each do |entry| -%>
21
  <tr class="time-entry <%= cycle("odd", "even") %> hascontextmenu">
22
    <td class="checkbox hide-when-print"><%= check_box_tag("ids[]", entry.id, false, :id => nil) %></td>
23
    <%= raw @query.inline_columns.map {|column| "<td class=\"#{column.css_classes}\">#{column_content(column, entry)}</td>"}.join %>
24
    <td class="buttons">
25
    <% if entry.editable_by?(User.current) -%>
26
        <%= link_to image_tag('edit.png'), edit_time_entry_path(entry),
27
                                           :title => l(:button_edit) %>
28
        <%= link_to image_tag('delete.png'), time_entry_path(entry),
29
                                             :data => {:confirm => l(:text_are_you_sure)},
30
                                             :method => :delete,
31
                                             :title => l(:button_delete) %>
32
    <% end -%>
33
    </td>
34
  </tr>
35
<% end -%>
36
</tbody>
37
</table>
38
</div>
39
<% end -%>
40

    
41
<%= context_menu time_entries_context_menu_path %>