= render :partial => 'shared/views/ems_common/form'

= form_for(@ems,
           :url    => ems_middleware_path(@ems),
           :method => :patch,
           :html   => {"ng-controller"   => "emsCommonFormController",
                       "name"            => "angularForm",
                       "ng-show"         => "afterGet",
                       "update-url"      => "#{ems_middleware_path(@ems)}",
                       "form-fields-url" => "/#{controller_name}/ems_middleware_form_fields/",
                       "novalidate"      => true}) do |f|
  %input{:type => 'hidden', :id => "form_id", :value => "##{f.options[:html][:id]}"}
  %input{:type => 'hidden', :id => "button_name", :name => "button", :value => "save"}
  %input{:type => 'hidden', :id => "cred_type", :name => "cred_type", :value => "default"}
  = render :partial => "form"

:javascript
  ManageIQ.angular.app.value('emsCommonFormId', '#{@ems.id || "new"}');
  miq_bootstrap($('#form_id').val());

Edit form for Middleware Provider
Edit form for Middleware Provider
