From 2834c2f86c9cbb87acc286771d06e4f749bec58f Mon Sep 17 00:00:00 2001 From: acognet Date: Tue, 23 Mar 2021 16:18:18 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B03582=20-=20Migrate=20backoffice=20pages?= =?UTF-8?q?=20to=20new=20UIBlock=20system=20:=20Import=20CSV=20fix=20butto?= =?UTF-8?q?ns=20style?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/csvimport.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/csvimport.php b/pages/csvimport.php index 2899d76af..95754edee 100644 --- a/pages/csvimport.php +++ b/pages/csvimport.php @@ -574,9 +574,9 @@ try { $oForm->AddSubBlock($oTable); if ($bSimulate) { - $oForm->AddSubBlock(ButtonUIBlockFactory::MakeForSecondaryAction(Dict::S('UI:Button:Restart'))->SetOnClickJsCode("CSVRestart()")); + $oForm->AddSubBlock(ButtonUIBlockFactory::MakeForCancel(Dict::S('UI:Button:Restart'))->SetOnClickJsCode("CSVRestart()")); } - $oForm->AddSubBlock(ButtonUIBlockFactory::MakeForDestructiveAction(Dict::S('UI:Button:Back'))->SetOnClickJsCode("CSVGoBack()")); + $oForm->AddSubBlock(ButtonUIBlockFactory::MakeForSecondaryAction(Dict::S('UI:Button:Back'))->SetOnClickJsCode("CSVGoBack()")); $bShouldConfirm = false; if ($bSimulate) { @@ -851,8 +851,8 @@ EOF } } - $oForm->AddSubBlock(ButtonUIBlockFactory::MakeForSecondaryAction(Dict::S('UI:Button:Restart'))->SetOnClickJsCode("CSVRestart()")); - $oForm->AddSubBlock(ButtonUIBlockFactory::MakeForDestructiveAction(Dict::S('UI:Button:Back'))->SetOnClickJsCode("CSVGoBack()")); + $oForm->AddSubBlock(ButtonUIBlockFactory::MakeForCancel(Dict::S('UI:Button:Restart'))->SetOnClickJsCode("CSVRestart()")); + $oForm->AddSubBlock(ButtonUIBlockFactory::MakeForSecondaryAction(Dict::S('UI:Button:Back'))->SetOnClickJsCode("CSVGoBack()")); $oForm->AddSubBlock(ButtonUIBlockFactory::MakeForPrimaryAction(Dict::S('UI:Button:SimulateImport'), '', '', true)); $sAlertIncompleteMapping = addslashes(Dict::S('UI:CSVImport:AlertIncompleteMapping')); @@ -1316,7 +1316,7 @@ EOF $oForm->AddSubBlock($oFieldSetSeparator); $oFieldSetSeparator->AddSubBlock(new Html("")); - $oForm->AddSubBlock(ButtonUIBlockFactory::MakeForDestructiveAction(Dict::S('UI:Button:Back'))->SetOnClickJsCode("GoBack()")); + $oForm->AddSubBlock(ButtonUIBlockFactory::MakeForSecondaryAction(Dict::S('UI:Button:Back'))->SetOnClickJsCode("GoBack()")); $oForm->AddSubBlock(ButtonUIBlockFactory::MakeForPrimaryAction(Dict::S('UI:Button:Next'), '', "", true)); $oPage->add_script(