mirror of
https://github.com/redmine/redmine.git
synced 2024-08-27 17:54:48 +02:00
![Toshi MARUYAMA](/assets/img/avatar_default.png)
Various hidden input fields are used to hold a URL to send the user back to the correct page after submitting a form, however, they all use the same ID which isn't allowed in HTML. Passing in 'id' as nil stops the 'hidden_field_tag' from adding an ID attribute to the tag. Contributed by Andrew Smith. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9250 e93f8b46-1217-0410-a6f0-8f06a7374b81
38 lines
1.9 KiB
Plaintext
38 lines
1.9 KiB
Plaintext
<% form_tag({}) do -%>
|
|
<%= hidden_field_tag 'back_url', url_for(params), :id => nil %>
|
|
<div class="autoscroll">
|
|
<table class="list issues">
|
|
<thead><tr>
|
|
<th class="checkbox hide-when-print"><%= link_to image_tag('toggle_check.png'), {}, :onclick => 'toggleIssuesSelection(Element.up(this, "form")); return false;',
|
|
:title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %>
|
|
</th>
|
|
<%= sort_header_tag('id', :caption => '#', :default_order => 'desc') %>
|
|
<% query.columns.each do |column| %>
|
|
<%= column_header(column) %>
|
|
<% end %>
|
|
</tr></thead>
|
|
<% previous_group = false %>
|
|
<tbody>
|
|
<% issue_list(issues) do |issue, level| -%>
|
|
<% if @query.grouped? && (group = @query.group_by_column.value(issue)) != previous_group %>
|
|
<% reset_cycle %>
|
|
<tr class="group open">
|
|
<td colspan="<%= query.columns.size + 2 %>">
|
|
<span class="expander" onclick="toggleRowGroup(this);"> </span>
|
|
<%= group.blank? ? 'None' : column_content(@query.group_by_column, issue) %> <span class="count">(<%= @issue_count_by_group[group] %>)</span>
|
|
<%= link_to_function("#{l(:button_collapse_all)}/#{l(:button_expand_all)}", "toggleAllRowGroups(this)", :class => 'toggle-all') %>
|
|
</td>
|
|
</tr>
|
|
<% previous_group = group %>
|
|
<% end %>
|
|
<tr id="issue-<%= issue.id %>" class="hascontextmenu <%= cycle('odd', 'even') %> <%= issue.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
|
|
<td class="checkbox hide-when-print"><%= check_box_tag("ids[]", issue.id, false, :id => nil) %></td>
|
|
<td class="id"><%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %></td>
|
|
<% query.columns.each do |column| %><%= content_tag 'td', column_content(column, issue), :class => column.css_classes %><% end %>
|
|
</tr>
|
|
<% end -%>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<% end -%>
|