From 1cc051091b261c22033f3b3940b593bf363e0ade Mon Sep 17 00:00:00 2001 From: Greg Buchanan Date: Mon, 21 Oct 2024 12:09:28 -0400 Subject: [PATCH] revert changes --- .../_editable_select.html.erb | 56 +++++++++---------- 1 file changed, 25 insertions(+), 31 deletions(-) diff --git a/apps/dashboard/app/views/launchers/editable_form_fields/_editable_select.html.erb b/apps/dashboard/app/views/launchers/editable_form_fields/_editable_select.html.erb index ebc565d0c..67e64e77d 100644 --- a/apps/dashboard/app/views/launchers/editable_form_fields/_editable_select.html.erb +++ b/apps/dashboard/app/views/launchers/editable_form_fields/_editable_select.html.erb @@ -14,37 +14,31 @@
    <%- attrib.select_choices(hide_excludable: false).each do |select_data| %> - <%- - choice = parse_select_data(select_data) - disabled = attrib.exclude_select_choices.include?(choice) - last_option = attrib.exclude_select_choices.length + 1 == attrib.select_choices(hide_excludable: false).length - li_classes = disabled ? 'list-group-item list-group-item-danger text-strike' : 'list-group-item' - add_id = "#{field_id}_add_#{choice}" - remove_id = "#{field_id}_remove_#{choice}" - -%> - -
  1. - - <%= choice %> -
    -
    -
    - -
    - -
    - -
    -
    -
  2. + <%- + choice = parse_select_data(select_data) + disabled = attrib.exclude_select_choices.include?(choice) + last_option = attrib.exclude_select_choices.length + 1 == attrib.select_choices(hide_excludable: false).length + li_classes = disabled ? 'list-group-item list-group-item-danger text-strike' : 'list-group-item' + add_id = "#{field_id}_add_#{choice}" + remove_id = "#{field_id}_remove_#{choice}" + -%> + +
  3. + + + + <%= choice %> + + +
  4. <%- end -%>