You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_visibility_by_project_selector.html.erb 648B

1234567891011
  1. <fieldset class="box"><legend><%= toggle_checkboxes_link("#custom_field_project_ids input[type=checkbox]:enabled") %><%= l(:label_project_plural) %></legend>
  2. <p><%= f.check_box :is_for_all, :data => {:disables => '#custom_field_project_ids input'} %></p>
  3. <div id="custom_field_project_ids">
  4. <% project_ids = @custom_field.project_ids.to_a %>
  5. <%= render_project_nested_lists(Project.all) do |p|
  6. content_tag('label', check_box_tag('custom_field[project_ids][]', p.id, project_ids.include?(p.id), :id => nil) + ' ' + p.to_s)
  7. end %>
  8. <%= hidden_field_tag('custom_field[project_ids][]', '', :id => nil) %>
  9. </div>
  10. </fieldset>