tag_name = "transitions[#{ old_status.id }][#{new_status.id}][#{name}]"
if w == 0 || w == @roles.size * @trackers.size
- hidden_field_tag(tag_name, "0") +
+ hidden_field_tag(tag_name, "0", :id => nil) +
check_box_tag(tag_name, "1", w != 0,
:class => "old-status-#{old_status.id} new-status-#{new_status.id}")
else
<% end %>
</ul>
<% if @project && @project.descendants.active.any? %>
- <%= hidden_field_tag 'with_subprojects', 0 %>
+ <%= hidden_field_tag 'with_subprojects', 0, :id => nil %>
<p><label><%= check_box_tag 'with_subprojects', 1, @with_subprojects %> <%=l(:label_subproject_plural)%></label></p>
<% end %>
<%= hidden_field_tag('user_id', params[:user_id]) unless params[:user_id].blank? %>
</ul>
<%= form_tag(bulk_update_issues_path, :id => 'bulk_edit_form') do %>
-<%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join("\n").html_safe %>
+<%= @issues.collect {|i| hidden_field_tag('ids[]', i.id, :id => nil)}.join("\n").html_safe %>
<div class="box tabular">
<fieldset class="attributes">
<legend><%= l(:label_change_properties) %></legend>
<h2><%= l(:label_confirmation) %></h2>
<%= form_tag({}, :method => :delete) do %>
-<%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join("\n").html_safe %>
+<%= @issues.collect {|i| hidden_field_tag('ids[]', i.id, :id => nil)}.join("\n").html_safe %>
<div class="box">
<p><strong><%= l(:text_destroy_time_entries_question, :hours => number_with_precision(@hours, :precision => 2)) %></strong></p>
<p>
:disabled => membership.member_roles.detect {|mr| mr.role_id == role.id && !mr.inherited_from.nil?},
:id => nil %> <%=h role %></label><br />
<% end %></p>
- <%= hidden_field_tag 'membership[role_ids][]', '' %>
+ <%= hidden_field_tag 'membership[role_ids][]', '', :id => nil %>
<p><%= submit_tag l(:button_change) %>
<%= link_to_function l(:button_cancel),
"$('#member-#{membership.id}-roles').show(); $('#member-#{membership.id}-roles-form').hide(); return false;"
<%= render :partial => 'form', :locals => { :f => f } %>
<fieldset class="box tabular"><legend><%= l(:button_copy) %></legend>
- <label class="block"><%= check_box_tag 'only[]', 'members', true %> <%= l(:label_member_plural) %> (<%= @source_project.members.count %>)</label>
- <label class="block"><%= check_box_tag 'only[]', 'versions', true %> <%= l(:label_version_plural) %> (<%= @source_project.versions.count %>)</label>
- <label class="block"><%= check_box_tag 'only[]', 'issue_categories', true %> <%= l(:label_issue_category_plural) %> (<%= @source_project.issue_categories.count %>)</label>
- <label class="block"><%= check_box_tag 'only[]', 'issues', true %> <%= l(:label_issue_plural) %> (<%= @source_project.issues.count %>)</label>
- <label class="block"><%= check_box_tag 'only[]', 'queries', true %> <%= l(:label_query_plural) %> (<%= @source_project.queries.count %>)</label>
- <label class="block"><%= check_box_tag 'only[]', 'boards', true %> <%= l(:label_board_plural) %> (<%= @source_project.boards.count %>)</label>
- <label class="block"><%= check_box_tag 'only[]', 'wiki', true %> <%= l(:label_wiki_page_plural) %> (<%= @source_project.wiki.nil? ? 0 : @source_project.wiki.pages.count %>)</label>
+ <label class="block"><%= check_box_tag 'only[]', 'members', true, :id => nil %> <%= l(:label_member_plural) %> (<%= @source_project.members.count %>)</label>
+ <label class="block"><%= check_box_tag 'only[]', 'versions', true, :id => nil %> <%= l(:label_version_plural) %> (<%= @source_project.versions.count %>)</label>
+ <label class="block"><%= check_box_tag 'only[]', 'issue_categories', true, :id => nil %> <%= l(:label_issue_category_plural) %> (<%= @source_project.issue_categories.count %>)</label>
+ <label class="block"><%= check_box_tag 'only[]', 'issues', true, :id => nil %> <%= l(:label_issue_plural) %> (<%= @source_project.issues.count %>)</label>
+ <label class="block"><%= check_box_tag 'only[]', 'queries', true, :id => nil %> <%= l(:label_query_plural) %> (<%= @source_project.queries.count %>)</label>
+ <label class="block"><%= check_box_tag 'only[]', 'boards', true, :id => nil %> <%= l(:label_board_plural) %> (<%= @source_project.boards.count %>)</label>
+ <label class="block"><%= check_box_tag 'only[]', 'wiki', true, :id => nil %> <%= l(:label_wiki_page_plural) %> (<%= @source_project.wiki.nil? ? 0 : @source_project.wiki.pages.count %>)</label>
<%= hidden_field_tag 'only[]', '' %>
<br />
<label class="block"><%= check_box_tag 'notifications', 1, params[:notifications] %> <%= l(:label_project_copy_notifications) %></label>
</label><br />
<% end %>
</p>
- <%= hidden_field_tag 'membership[role_ids][]', '' %>
+ <%= hidden_field_tag 'membership[role_ids][]', '', :id => nil %>
<p>
<%= submit_tag l(:button_save), :class => "small" %>
<%= link_to_function(l(:button_cancel),
<tr class="<%= cycle 'odd', 'even' %>">
<td><%=h committer %></td>
<td>
- <%= hidden_field_tag "committers[#{i}][]", committer %>
+ <%= hidden_field_tag "committers[#{i}][]", committer, :id => nil %>
<%= select_tag "committers[#{i}][]",
content_tag(
'option',
options_for_select(
[[l(:label_all), ""]] +
Tracker.sorted.map {|t| [t.name, t.id.to_s]},
- rule['if_tracker_id'])
+ rule['if_tracker_id']),
+ :id => nil
) %>
</td>
<td>
<%= text_field_tag("settings[commit_update_keywords][keywords][]",
- rule['keywords'], :size => 30) %>
+ rule['keywords'], :id => nil, :size => 30) %>
</td>
<td>
<%= select_tag("settings[commit_update_keywords][status_id][]",
[["", 0]] +
IssueStatus.sorted.
collect{|status| [status.name, status.id.to_s]},
- rule['status_id'])
+ rule['status_id']),
+ :id => nil
) %>
</td>
<td>
options_for_select(
[["", ""]] +
(0..10).to_a.collect {|r| ["#{r*10} %", "#{r*10}"] },
- rule['done_ratio'])
+ rule['done_ratio']),
+ :id => nil
) %>
</td>
<td class="buttons">
</ul>
<%= form_tag(bulk_update_time_entries_path, :id => 'bulk_edit_form') do %>
-<%= @time_entries.collect {|i| hidden_field_tag('ids[]', i.id)}.join.html_safe %>
+<%= @time_entries.collect {|i| hidden_field_tag('ids[]', i.id, :id => nil)}.join.html_safe %>
<div class="box tabular">
<div>
<p>
</li>
<% if @project.descendants.active.any? %>
<li>
- <%= hidden_field_tag 'with_subprojects', 0 %>
+ <%= hidden_field_tag 'with_subprojects', 0, :id => nil %>
<label>
<%= check_box_tag 'with_subprojects', 1, @with_subprojects %> <%=l(:label_subproject_plural)%>
</label>
<%= submit_tag l(:button_edit), :name => nil %>
- <%= hidden_field_tag 'used_statuses_only', '0' %>
+ <%= hidden_field_tag 'used_statuses_only', '0', :id => nil %>
<label><%= check_box_tag 'used_statuses_only', '1', @used_statuses_only %> <%= l(:label_display_used_statuses_only) %></label>
</p>
<% if @trackers && @roles && @statuses.any? %>
<%= form_tag({}, :id => 'workflow_form' ) do %>
- <%= @trackers.map {|tracker| hidden_field_tag 'tracker_id[]', tracker.id}.join.html_safe %>
- <%= @roles.map {|role| hidden_field_tag 'role_id[]', role.id}.join.html_safe %>
- <%= hidden_field_tag 'used_statuses_only', params[:used_statuses_only] %>
+ <%= @trackers.map {|tracker| hidden_field_tag 'tracker_id[]', tracker.id, :id => nil}.join.html_safe %>
+ <%= @roles.map {|role| hidden_field_tag 'role_id[]', role.id, :id => nil}.join.html_safe %>
+ <%= hidden_field_tag 'used_statuses_only', params[:used_statuses_only], :id => nil %>
<div class="autoscroll">
<%= render :partial => 'form', :locals => {:name => 'always', :workflows => @workflows['always']} %>
<%= submit_tag l(:button_edit), :name => nil %>
- <%= hidden_field_tag 'used_statuses_only', '0' %>
+ <%= hidden_field_tag 'used_statuses_only', '0', :id => nil %>
<label><%= check_box_tag 'used_statuses_only', '1', @used_statuses_only %> <%= l(:label_display_used_statuses_only) %></label>
</p>
<% end %>
<% if @trackers && @roles && @statuses.any? %>
<%= form_tag({}, :id => 'workflow_form' ) do %>
- <%= @trackers.map {|tracker| hidden_field_tag 'tracker_id[]', tracker.id}.join.html_safe %>
- <%= @roles.map {|role| hidden_field_tag 'role_id[]', role.id}.join.html_safe %>
- <%= hidden_field_tag 'used_statuses_only', params[:used_statuses_only] %>
+ <%= @trackers.map {|tracker| hidden_field_tag 'tracker_id[]', tracker.id, :id => nil}.join.html_safe %>
+ <%= @roles.map {|role| hidden_field_tag 'role_id[]', role.id, :id => nil}.join.html_safe %>
+ <%= hidden_field_tag 'used_statuses_only', params[:used_statuses_only], :id => nil %>
<div class="autoscroll">
<table class="list workflows fields_permissions">
<thead>