Skip to content

Commit

Permalink
Merge pull request #4875 from h-kataria/fixed_container_template_drop…
Browse files Browse the repository at this point in the history
…_down

Fixed to show grouping in drop down only for Ansible Tower type item.

(cherry picked from commit 3c47c43)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1645676
  • Loading branch information
mzazrivec authored and simaishi committed Nov 6, 2018
1 parent 0bde968 commit 362db9e
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions app/views/catalog/_form_basic_info.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,16 @@
%label.col-md-2.control-label
= @edit[:new][:st_prov_type] == "generic_ansible_tower" ? _('Ansible Tower Template') : _('Container Template')
.col-md-8
= select_tag('template_id',
grouped_options_for_select(@edit[:new][:available_templates], @edit[:new][:template_id]),
"data-miq_sparkle_on" => true,
:class => "selectpicker")
- if @edit[:new][:st_prov_type] == "generic_ansible_tower"
= select_tag('template_id',
grouped_options_for_select(@edit[:new][:available_templates], @edit[:new][:template_id]),
"data-miq_sparkle_on" => true,
:class => "selectpicker")
- else
= select_tag('template_id',
options_for_select(@edit[:new][:available_templates], @edit[:new][:template_id]),
"data-miq_sparkle_on" => true,
:class => "selectpicker")
:javascript
miqSelectPickerEvent('template_id', '#{url}')
.form-group
Expand Down

0 comments on commit 362db9e

Please sign in to comment.