From 4be953fb55bb28d95d172e3ac37cf7e28381d43d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Hal=C3=A1sz?= Date: Thu, 2 Jul 2020 16:13:05 +0200 Subject: [PATCH] Replace old angular ansible tower form with a react based DDF --- app/views/automation_manager/_form.html.haml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/views/automation_manager/_form.html.haml b/app/views/automation_manager/_form.html.haml index bb7271e8b755..6331bcb036f3 100644 --- a/app/views/automation_manager/_form.html.haml +++ b/app/views/automation_manager/_form.html.haml @@ -1,2 +1,5 @@ -= render :partial => 'configuration_manager/shared_form', :locals => {:url => "/automation_manager", :model => "automationManagerModel"} - +- if @ems + -# FIXME: the redirect URL cannot be determined due to the explorer screen, but after a de-explorerization it should be possible to fix + = react('ProviderForm', :providerId => @ems.id.to_s, :redirect => automation_manager_path, :kind => 'automation', :title => ui_lookup(:model => 'ManageIQ::Providers::AutomationManager')) +- else + = react('ProviderForm', :redirect => automation_manager_path, :kind => 'automation', :title => ui_lookup(:model => 'ManageIQ::Providers::AutomationManager'))