ManageIQ/manageiq-ui-classic

View on GitHub
app/views/pxe/_iso_datastore_details.html.haml

Summary

Maintainability
Test Coverage
- binf = _('Basic Information')
#iso_datastore_details_div
  - if @isd
    -# if PXE Server is selected %>
    #iso_datastore_info_div
      - if @in_a_form
        = react 'PxeIsoDatastoreForm', :emses => @edit[:emses]
      - else
        = render :partial => "layouts/flash_msg"
        = react 'GenericGroupWrapper', expand_generic_group(TextualGroup.new(binf, textual_iso_datastore_basicinfo), @record)
        - unless @isd.iso_images.empty?
          %h3= _('ISO Images')
          = react('ISODatastoreTable', { :initialData => @isd.iso_images.sort_by { |a| a.name.downcase } })

  - if @img
    -# PXE Image is selected
    #iso_img_info_div
      - if @in_a_form
        = react 'PxeIsoImageForm', :recordId => @img.try(:id).try(:to_s)
      - else
        = render :partial => "layouts/flash_msg"
        = react 'GenericGroupWrapper', expand_generic_group(TextualGroup.new(binf, textual_iso_img_info), @record)