From 615baa2f3df889ec3516bd302d0d770966cb2768 Mon Sep 17 00:00:00 2001 From: Martin Hradil Date: Thu, 28 Jan 2021 00:47:43 +0000 Subject: [PATCH] Drop unused views with ems_common/angular/form references not used since the provider form rewrite, removing --- app/views/ems_object_storage/edit.html.haml | 19 ------------------ app/views/ems_object_storage/new.html.haml | 20 ------------------- app/views/ems_storage/_edit_storage.html.haml | 19 ------------------ app/views/ems_storage/new.html.haml | 20 ------------------- 4 files changed, 78 deletions(-) delete mode 100644 app/views/ems_object_storage/edit.html.haml delete mode 100644 app/views/ems_object_storage/new.html.haml delete mode 100644 app/views/ems_storage/_edit_storage.html.haml delete mode 100644 app/views/ems_storage/new.html.haml diff --git a/app/views/ems_object_storage/edit.html.haml b/app/views/ems_object_storage/edit.html.haml deleted file mode 100644 index a203f58d640..00000000000 --- a/app/views/ems_object_storage/edit.html.haml +++ /dev/null @@ -1,19 +0,0 @@ -- url = url_for_only_path(:controller => 'ems_object_storage', :action => 'update', :id => (@ems.id || 'new')) -= form_for(@ems, - :url => url, - :method => :post, - :html => {"ng-controller" => "emsCommonFormController", - "name" => "angularForm", - "ng-show" => "afterGet", - "update-url" => url, - "form-fields-url" => "/#{controller_name}/ems_object_storage_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 => "shared/views/ems_common/angular/form" - -:javascript - ManageIQ.angular.app.value('emsCommonFormId', '#{@ems.id || "new"}'); - miq_bootstrap($('#form_id').val()); - diff --git a/app/views/ems_object_storage/new.html.haml b/app/views/ems_object_storage/new.html.haml deleted file mode 100644 index 64a42f2d8ff..00000000000 --- a/app/views/ems_object_storage/new.html.haml +++ /dev/null @@ -1,20 +0,0 @@ -- url = url_for_only_path(:controller => 'ems_object_storage', :action => 'create', :id => (@ems.id || 'new')) -= form_for(@ems, - :url => url, - :method => :post, - :html => {"ng-controller" => "emsCommonFormController", - "name" => "angularForm", - "ng-show" => "afterGet", - "create-url" => url, - "form-fields-url" => "/#{controller_name}/ems_object_storage_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 => "add"} - %input{:type => 'hidden', :id => "cred_type", :name => "cred_type", :value => "default"} - - = render :partial => "shared/views/ems_common/angular/form" - -:javascript - ManageIQ.angular.app.value('emsCommonFormId', '#{@ems.id || "new"}'); - miq_bootstrap($('#form_id').val()); - diff --git a/app/views/ems_storage/_edit_storage.html.haml b/app/views/ems_storage/_edit_storage.html.haml deleted file mode 100644 index 46288278bb8..00000000000 --- a/app/views/ems_storage/_edit_storage.html.haml +++ /dev/null @@ -1,19 +0,0 @@ -- url = url_for_only_path(:controller => 'ems_storage', :action => 'update', :id => (@ems.id || 'new')) -= form_for(@ems, - :url => url, - :method => :post, - :html => {"ng-controller" => "emsCommonFormController", - "name" => "angularForm", - "ng-show" => "afterGet", - "update-url" => url, - "form-fields-url" => "/#{controller_name}/ems_storage_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 => "shared/views/ems_common/angular/form" - -:javascript - ManageIQ.angular.app.value('emsCommonFormId', '#{@ems.id || "new"}'); - miq_bootstrap($('#form_id').val()); - diff --git a/app/views/ems_storage/new.html.haml b/app/views/ems_storage/new.html.haml deleted file mode 100644 index 8e5a25eea69..00000000000 --- a/app/views/ems_storage/new.html.haml +++ /dev/null @@ -1,20 +0,0 @@ -- url = url_for_only_path(:controller => 'ems_storage', :action => 'create', :id => (@ems.id || 'new')) -= form_for(@ems, - :url => url, - :method => :post, - :html => {"ng-controller" => "emsCommonFormController", - "name" => "angularForm", - "ng-show" => "afterGet", - "create-url" => url, - "form-fields-url" => "/#{controller_name}/ems_storage_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 => "add"} - %input{:type => 'hidden', :id => "cred_type", :name => "cred_type", :value => "default"} - - = render :partial => "shared/views/ems_common/angular/form" - -:javascript - ManageIQ.angular.app.value('emsCommonFormId', '#{@ems.id || "new"}'); - miq_bootstrap($('#form_id').val()); -