Project

General

Profile

Patch #38796 » improved_tracker_selection_on_cf_settings.patch

ryo ito, 2023-06-30 22:08

View differences:

app/views/custom_fields/_visibility_by_tracker_selector.html.erb
1
<fieldset class="box" id="custom_field_tracker_ids"><legend><%= toggle_checkboxes_link("#custom_field_tracker_ids input[type=checkbox]") %><%=l(:label_tracker_plural)%></legend>
1
<fieldset class="box tabular" id="custom_field_tracker_ids"><legend><%= toggle_checkboxes_link("#custom_field_tracker_ids input[type=checkbox]") %><%=l(:label_tracker_plural)%></legend>
2 2
  <% tracker_ids = @custom_field.tracker_ids %>
3 3
  <% Tracker.sorted.each do |tracker| %>
4
    <%= check_box_tag "custom_field[tracker_ids][]",
5
                      tracker.id,
6
                      tracker_ids.include?(tracker.id),
7
                      :id => "custom_field_tracker_ids_#{tracker.id}" %>
8
    <label class="no-css" for="custom_field_tracker_ids_<%=tracker.id%>">
4
    <label class="floating">
5
      <%= check_box_tag "custom_field[tracker_ids][]",
6
                        tracker.id,
7
                        tracker_ids.include?(tracker.id),
8
                        :id => "custom_field_tracker_ids_#{tracker.id}" %>
9 9
      <%= tracker.name %>
10 10
    </label>
11 11
  <% end %>
public/stylesheets/application.css
865 865
  width: 270px;
866 866
}
867 867

  
868
#custom_field_tracker_ids {
869
  max-height: 200px;
870
  overflow: auto;
871
}
872

  
873
.splitcontent .tabular label.floating{
874
  font-weight: normal;
875
  margin-left: 0px;
876
  text-align: left;
877
  width: 200px;
878
}
879

  
868 880
label.block {
869 881
  display: block;
870 882
  width: auto !important;
(3-3/3)