ManageIQ/manageiq-ui-classic

View on GitHub
app/views/report/_db_seq_form.html.haml

Summary

Maintainability
Test Coverage
#column_lists
  = render :partial => "layouts/flash_msg"
  .col-md-7.col-sm-10.col-xs-10
    = _('Dashboards:')
    = select_tag('seq_fields[]',
      options_for_select(@edit[:new][:dashboard_order], @selected),
      :multiple => true,
      :class    => "form-control",
      :style    => "overflow-x: scroll;",
      :size     => 20,
      :id       => "seq_fields")
    %small= _('* Select one or more consecutive groups to move up or down.')

  - button_params = @edit[:new][:dashboard_order].length >= 2 ? [[_("Move selected fields up"),   'column_lists', 'up',    'fa-angle-up'],
                                                                 [_("Move selected fields down"), 'column_lists', 'down',  'fa-angle-down']] : []
  = render :partial => "shared/views/seq_selector_buttons",
           :locals  => {:fields_count  => @edit[:new][:dashboard_order].length,
                        :button_params => button_params,
                        :button_action => 'db_form_field_changed',
                        :id            => 'seq'}