Skip to content

Commit

Permalink
Group by tenant for chargeback|metering reports
Browse files Browse the repository at this point in the history
  • Loading branch information
lpichler committed Feb 7, 2018
1 parent d2ce22d commit 0b1ab90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/views/report/_form_filter_chargeback.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
- opts = [["#{_('Date')}", "date"], ["#{_(@edit[:new][:cb_model])}", "vm"]]
- opts += [["#{_('Tag')}", "tag"]] unless @edit[:new][:model] == "ChargebackContainerImage" || @edit[:new][:model] == "MeteringContainerImage"
- opts += [["#{_('Project')}", "project"], [_('Label'), 'label']] if @edit[:new][:model] == "ChargebackContainerImage" || @edit[:new][:model] == "MeteringContainerImage"
- opts += [["#{_('Tenant')}", "tenant"]] if %w(ChargebackVm MeteringVm).include?(@edit[:new][:model])
= select_tag("cb_groupby",
options_for_select(opts, @edit[:new][:cb_groupby]),
:class => "selectpicker")
Expand Down

0 comments on commit 0b1ab90

Please sign in to comment.