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 c51a6a9d9..fa04e1cb9 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,32 +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 -%>