ManageIQ/manageiq-ui-classic

View on GitHub
app/views/miq_request/_prov_dialog_fieldset.html.haml

Summary

Maintainability
Test Coverage
- if keys.any? { |key| workflow.get_field(key, dialog)[:display] && workflow.get_field(key, dialog)[:display].to_s != "hide" }
  %h3
    = label
  .form-horizontal
    - prefix ||= "/miq_request/"
    - keys.each do |key|
      - locals = {:wf => workflow, :dialog => dialog, :field => key}
      - locals[:disabled] = workflow.get_field(key, dialog)[:read_only] ? true : false
      = render :partial => "#{prefix}prov_field", :locals => locals
  %hr