.mb-3.col-md-6
  = form.label(:binaries)
  - if binarylist.present? || binaries.present?
    .row
      .col
        %small.form-text Available binaries
        = select_tag(:available_binaries, options_for_select(binarylist.to_a), multiple: true, size: 6, class: 'form-select')
      .col-auto
        %br
        %button.btn.btn-sm.btn-secondary.mb-1#select-binary{ type: 'button', title: 'Select binary' } >
        %br
        %button.btn.btn-sm.btn-secondary.mb-1#select-binaries{ type: 'button', title: 'Select all binaries' } >>
        %br
        %button.btn.btn-sm.btn-secondary.mb-1#unselect-binaries{ type: 'button', title: 'Unselect all binaries' } <<
        %br
        %button.btn.btn-sm.btn-secondary.mb-1#unselect-binary{ type: 'button', title: 'Unselect binary' } <
      .col
        %small.form-text Selected binaries
        = form.select(:binaries, options_for_select(binaries.to_a), { include_hidden: false }, multiple: true, size: 6, class: 'form-select')
  - else
    %p.fst-italic No binaries available
