app/views/catalog/explorer.html.haml
-# Include the center cell divs
- nodetypes = %w(MiqTemplate OrchestrationTemplate ServiceResource ServiceTemplate ServiceTemplateCatalog)
- if nodetypes.include?(TreeBuilder.get_model_for_prefix(@nodetype)) && @record.present?
#main_div
- if TreeBuilder.get_model_for_prefix(@nodetype) == "MiqTemplate"
= render :partial => "layouts/textual_groups_generic"
- else
= render(:partial => "#{x_active_tree}_show",
:locals => locals)
- else
#main_div
- if @sb[:buttons_node]
= render :partial => "shared/buttons/ab_list"
- elsif @upload_sysprep_file
= render :partial => "layouts/flash_msg"
= render :partial => "catalog/form"
- @upload_sysprep_file = false
:javascript
ManageIQ.afterOnload = {action: () => miqPrepRightCellForm("#{x_active_tree}")}
- else
= render :partial => "layouts/x_gtl"
-# To include MyCodeMirror JS and CSS files
= render :partial => "/layouts/my_code_mirror",
:locals => {:text_area_id => "miq_none",
:mode => "htmlmixed",
:height => '350px',
:width => '600px'}