Skip to content

Commit

Permalink
Edit Report Menus- Manage Reports fix
Browse files Browse the repository at this point in the history
The two boxes for "Available Reports" and "Selected Reports" were switched.

https://bugzilla.redhat.com/show_bug.cgi?id=1332759
  • Loading branch information
ZitaNemeckova committed May 9, 2016
1 parent 78dc56c commit b686254
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions app/views/report/_menu_form2.html.haml
Expand Up @@ -8,44 +8,47 @@
%table
%tr
%td{:align => "left"}
= _('Selected Reports:')
= _('Available Reports:')
%td
%td{:align => "left"}
= _('Available Reports:')
= _('Selected Reports:')
%td
%tr
%td{:align => "right"}
= select_tag('selected_reports[]',
options_for_select(@edit[:selected_reports], @selected_reps),
%td{:align => "left"}
= select_tag('available_reports[]',
options_for_select(@edit[:available_reports].sort),
:multiple => true,
:style => "width: 280px; height: 310px;",
:id => "selected_reports")
:id => "available_reports")

%td.text-center{:width => "40"}
.btn-group-vertical
- if @edit[:available_reports].length == 0

- if @edit[:available_reports].empty?
%button.btn.btn-default.disabled
%i.fa.fa-angle-left.fa-lg
%i.fa.fa-angle-right.fa-lg
- else
- t = _("Move selected reports left")
- t = _("Move selected reports right")
%button.btn.btn-default{:title => t,
"data-submit" => 'column_lists',
"data-miq_sparkle_on" => true,
:remote => true,
"data-method" => :post,
'data-click_url' => {:url => "#{url}?button=left"}.to_json}
%i.fa.fa-angle-left.fa-lg
%i.fa.fa-angle-right.fa-lg

- if @edit[:selected_reports].length == 0
- if @edit[:selected_reports].empty?
%button.btn.btn-default.disabled
%i.fa.fa-angle-left.fa-lg
- else
- t = _("Move selected reports right")
- t = _("Move selected reports left")
%button.btn.btn-default{:title => t,
"data-submit" => 'column_lists',
"data-miq_sparkle_on" => true,
:remote => true,
"data-method" => :post,
'data-click_url' => {:url => "#{url}?button=right"}.to_json}
%i.fa.fa-angle-right.fa-lg
%i.fa.fa-angle-left.fa-lg

- if @edit[:selected_reports].length < 2
%button.btn.btn-default
Expand Down Expand Up @@ -99,12 +102,12 @@
'data-click_url' => {:url => "#{url}?button=bottom"}.to_json}
%i.fa.fa-angle-double-down.fa-lg

%td{:align => "left"}
= select_tag('available_reports[]',
options_for_select(@edit[:available_reports].sort),
%td{:align => "right"}
= select_tag('selected_reports[]',
options_for_select(@edit[:selected_reports], @selected_reps),
:multiple => true,
:style => "width: 280px; height: 310px;",
:id => "available_reports")
:id => "selected_reports")
%tr
%td{:colspan => "3", :align => "right"}
.form-group.pull-right
Expand Down

0 comments on commit b686254

Please sign in to comment.