Skip to content

Commit

Permalink
Merge pull request #9037 from GilbertCherrie/remove_ae_tabs
Browse files Browse the repository at this point in the history
Remove invisible ae tabs
  • Loading branch information
jeffibm authored Jan 22, 2024
2 parents 1f44190 + 5155cde commit 871d7f3
Showing 1 changed file with 8 additions and 35 deletions.
43 changes: 8 additions & 35 deletions app/views/miq_ae_class/_all_tabs.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -23,46 +23,19 @@
= miq_tab_content("schema", @sb[:active_tab]) do
= render :partial => "class_fields"
- when "aei"
%ul.nav.nav-tabs{'role' => 'tablist'}
= miq_tab_header("instances", @sb[:active_tab]) do
= _('Instances')
.tab-content
= miq_tab_content("instances", @sb[:active_tab]) do
= render :partial => "instance_fields"
= render :partial => "instance_fields"
- when "aem"
%ul.nav.nav-tabs{'role' => 'tablist'}
= miq_tab_header("methods", @sb[:active_tab]) do
= _("Method Inputs")
.tab-content
= miq_tab_content("methods", @sb[:active_tab]) do
= render :partial => "method_inputs"
= render :partial => "method_inputs"
- when "aen"
- if @in_a_form && @edit.key?(:ae_class_id)
-# class add
%ul.nav.nav-tabs{'role' => 'tablist'}
= miq_tab_header("details", @sb[:active_tab]) do
= _('Properties')
.tab-content
= miq_tab_content("details", @sb[:active_tab]) do
= render :partial => "class_add"
= render :partial => "class_add"
- else
%ul.nav.nav-tabs{'role' => 'tablist'}
= miq_tab_header("details", @sb[:active_tab]) do
= _('Namespace Details')
.tab-content
= miq_tab_content("details", @sb[:active_tab]) do
- if !@in_a_form
= render :partial => "ns_details"
- else
= render :partial => "ns_list"
- when "root"
-# ns_list_div
%ul.nav.nav-tabs
= miq_tab_header("namespaces", @sb[:active_tab]) do
= _('Namespaces')
.tab-content
= miq_tab_content("namespaces", @sb[:active_tab]) do
- if !@in_a_form
= render :partial => "ns_details"
- else
= render :partial => "ns_list"
- when "root"
= render :partial => "ns_list"

:javascript
// method takes hash that can have 4 keys: tabs div id, active_tab label,
Expand Down

0 comments on commit 871d7f3

Please sign in to comment.