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 / timelog / _list.html.erb @ 1298:4f746d8966dd
History | View | Annotate | Download (1.49 KB)
| 1 | 1115:433d4f72a19b | Chris | <%= form_tag({}) do -%>
|
|---|---|---|---|
| 2 | 441:cbce1fd3b1b7 | Chris | <%= hidden_field_tag 'back_url', url_for(params) %>
|
| 3 | 909:cbb26bc654de | Chris | <div class="autoscroll"> |
| 4 | 0:513646585e45 | Chris | <table class="list time-entries"> |
| 5 | <thead>
|
||
| 6 | 1295:622f24f53b42 | Chris | <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 | 0:513646585e45 | Chris | </thead>
|
| 19 | <tbody>
|
||
| 20 | <% entries.each do |entry| -%>
|
||
| 21 | 1295:622f24f53b42 | Chris | <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 align="center"> |
||
| 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 | 0:513646585e45 | Chris | <% end -%>
|
| 36 | </tbody>
|
||
| 37 | </table>
|
||
| 38 | 909:cbb26bc654de | Chris | </div>
|
| 39 | 441:cbce1fd3b1b7 | Chris | <% end -%>
|
| 40 | |||
| 41 | <%= context_menu time_entries_context_menu_path %> |