Patch #9037 » 0002-Fixed-clickable-checkbox-labels-clear-id-attr-on-the.patch
| app/helpers/custom_fields_helper.rb | ||
|---|---|---|
|
when "text"
|
||
|
text_area_tag(field_name, custom_value.value, :id => field_id, :rows => 3, :style => 'width:90%')
|
||
|
when "bool"
|
||
|
hidden_field_tag(field_name, '0') + check_box_tag(field_name, '1', custom_value.true?, :id => field_id)
|
||
|
hidden_field_tag(field_name, '0', :id => nil) + check_box_tag(field_name, '1', custom_value.true?, :id => field_id)
|
||
|
when "list"
|
||
|
blank_option = custom_field.is_required? ?
|
||
|
(custom_field.default_value.blank? ? "<option value=\"\">--- #{l(:actionview_instancetag_blank_option)} ---</option>" : '') :
|
||
| app/helpers/settings_helper.rb | ||
|---|---|---|
|
setting_values = [] unless setting_values.is_a?(Array)
|
||
|
setting_label(setting, options) +
|
||
|
hidden_field_tag("settings[#{setting}][]", '') +
|
||
|
hidden_field_tag("settings[#{setting}][]", '', :id => nil) +
|
||
|
choices.collect do |choice|
|
||
|
text, value = (choice.is_a?(Array) ? choice : [choice, choice])
|
||
|
content_tag(
|
||
| ... | ... | |
|
def setting_check_box(setting, options={})
|
||
|
setting_label(setting, options) +
|
||
|
hidden_field_tag("settings[#{setting}]", 0) +
|
||
|
hidden_field_tag("settings[#{setting}]", 0, :id => nil) +
|
||
|
check_box_tag("settings[#{setting}]", 1, Setting.send("#{setting}?"), options)
|
||
|
end
|
||
| app/views/activities/index.html.erb | ||
|---|---|---|
|
<br />
|
||
|
<% end %></p>
|
||
|
<% 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? %>
|
||
| app/views/versions/index.html.erb | ||
|---|---|---|
|
<br />
|
||
|
<label for="completed"><%= check_box_tag "completed", 1, params[:completed] %> <%= l(:label_show_completed_versions) %></label>
|
||
|
<% if @project.descendants.active.any? %>
|
||
|
<%= hidden_field_tag 'with_subprojects', 0 %>
|
||
|
<%= hidden_field_tag 'with_subprojects', 0, :id => nil %>
|
||
|
<br /><label><%= check_box_tag 'with_subprojects', 1, @with_subprojects %> <%=l(:label_subproject_plural)%></label>
|
||
|
<% end %>
|
||
|
<p><%= submit_tag l(:button_apply), :class => 'button-small', :name => nil %></p>
|
||
| app/views/workflows/edit.rhtml | ||
|---|---|---|
|
<label><%=l(:label_tracker)%>:</label>
|
||
|
<%= select_tag 'tracker_id', options_from_collection_for_select(@trackers, "id", "name", @tracker && @tracker.id) %>
|
||
|
|
||
|
<%= 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>
|
||
|
<p>
|
||
- « Previous
- 1
- 2
- Next »