check_box_tag(
"settings[#{setting}][]",
value,
- Setting.send(setting).include?(value)
+ Setting.send(setting).include?(value),
+ :id => nil
) + text.to_s,
:class => 'block'
)
def setting_check_box(setting, options={})
setting_label(setting, options).html_safe +
- hidden_field_tag("settings[#{setting}]", 0).html_safe +
+ hidden_field_tag("settings[#{setting}]", 0, :id => nil).html_safe +
check_box_tag("settings[#{setting}]", 1, Setting.send("#{setting}?"), options).html_safe
end
return content_tag(:label,
check_box_tag('settings[notified_events][]',
notifiable.name,
- Setting.notified_events.include?(notifiable.name)).html_safe +
+ Setting.notified_events.include?(notifiable.name), :id => nil).html_safe +
l_or_humanize(notifiable.name, :prefix => 'label_').html_safe,
:class => notifiable.parent.present? ? "parent" : '').html_safe
end
<% enabled = Setting.send(setting).include?(value) %>
<tr>
<td class="scm_name">
- <%=
- check_box_tag(
- "settings[#{setting}][]",
- value,
- enabled)
- %>
+ <%= check_box_tag("settings[#{setting}][]", value, enabled, :id => nil) %>
<%= text.to_s %>
</td>
<td>