Skip to content

Commit

Permalink
Merge pull request #9096 from jeffibm/fix-duplicate-div-warning
Browse files Browse the repository at this point in the history
Fix duplicate DOM ID warning in automate modal form
  • Loading branch information
DavidResende0 authored Feb 29, 2024
2 parents 0339574 + 77b67fb commit cbcc0a3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
3 changes: 2 additions & 1 deletion app/views/miq_ae_class/_all_tabs.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
= miq_tab_content("instances", @sb[:active_tab]) do
= render :partial => "class_instances"
= miq_tab_content("methods", @sb[:active_tab]) do
= render :partial => "class_methods"
#class_methods_div
= render :partial => "class_methods"
= miq_tab_content("props", @sb[:active_tab]) do
= render :partial => "class_props"
= miq_tab_content("schema", @sb[:active_tab]) do
Expand Down
23 changes: 11 additions & 12 deletions app/views/miq_ae_class/_class_methods.html.haml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#class_methods_div
- if !@in_a_form && !@angular_form
%h3= _('Methods')
- if @record.ae_methods.present?
= render :partial => 'datastore_list', :locals => {:type => MiqAeClassHelper::DATASTORE_TYPES[:methods], :data => @record.ae_methods.order(:name)}
- else
= render :partial => "layouts/info_msg",
:locals => {:message => _("No methods found")}
- elsif @angular_form || @edit[:new][:fields]
.form_div
- partial_name = @angular_form ? 'angular_method_form' : 'method_form'
= render :partial => partial_name, :locals => {:prefix => "cls_", :location => @edit[:new][:location]}

- if !@in_a_form && !@angular_form
%h3= _('Methods')
- if @record.ae_methods.present?
= render :partial => 'datastore_list', :locals => {:type => MiqAeClassHelper::DATASTORE_TYPES[:methods], :data => @record.ae_methods.order(:name)}
- else
= render :partial => "layouts/info_msg", :locals => {:message => _("No methods found")}
- elsif @angular_form || @edit[:new][:fields]
.form_div
- partial_name = @angular_form ? 'angular_method_form' : 'method_form'
= render :partial => partial_name, :locals => {:prefix => "cls_", :location => @edit[:new][:location]}

0 comments on commit cbcc0a3

Please sign in to comment.