diff --git a/application/applicationcontext.class.inc.php b/application/applicationcontext.class.inc.php
index a39014ffc..2d0dc1439 100644
--- a/application/applicationcontext.class.inc.php
+++ b/application/applicationcontext.class.inc.php
@@ -24,7 +24,7 @@
* @license http://opensource.org/licenses/AGPL-3.0
*/
-use Combodo\iTop\Application\UI\Base\Component\Input\InputFactory;
+use Combodo\iTop\Application\UI\Base\Component\Input\InputUIBlockFactory;
use Combodo\iTop\Application\UI\Base\Layout\UIContentBlock;
use Combodo\iTop\Application\UI\Base\UIBlock;
@@ -236,7 +236,7 @@ class ApplicationContext
{
$oContext = new UIContentBlock();
foreach ($this->aValues as $sName => $sValue) {
- $oContext->AddSubBlock(InputFactory::MakeForHidden('c[$sName]', utils::HtmlEntities($sValue)));
+ $oContext->AddSubBlock(InputUIBlockFactory::MakeForHidden('c[$sName]', utils::HtmlEntities($sValue)));
}
return $oContext;
}
diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php
index 881487953..25eea15d7 100644
--- a/application/cmdbabstract.class.inc.php
+++ b/application/cmdbabstract.class.inc.php
@@ -18,18 +18,18 @@
*/
use Combodo\iTop\Application\Search\SearchForm;
-use Combodo\iTop\Application\UI\Base\Component\Alert\AlertFactory;
+use Combodo\iTop\Application\UI\Base\Component\Alert\AlertUIBlockFactory;
use Combodo\iTop\Application\UI\Base\Component\Button\Button;
-use Combodo\iTop\Application\UI\Base\Component\Button\ButtonFactory;
-use Combodo\iTop\Application\UI\Base\Component\DataTable\DataTableFactory;
+use Combodo\iTop\Application\UI\Base\Component\Button\ButtonUIBlockFactory;
use Combodo\iTop\Application\UI\Base\Component\DataTable\DataTableSettings;
+use Combodo\iTop\Application\UI\Base\Component\DataTable\DataTableUIBlockFactory;
use Combodo\iTop\Application\UI\Base\Component\Field\Field;
-use Combodo\iTop\Application\UI\Base\Component\Field\FieldFactory;
+use Combodo\iTop\Application\UI\Base\Component\Field\FieldUIBlockFactory;
use Combodo\iTop\Application\UI\Base\Component\FieldSet\FieldSet;
use Combodo\iTop\Application\UI\Base\Component\Form\Form;
-use Combodo\iTop\Application\UI\Base\Component\Input\InputFactory;
+use Combodo\iTop\Application\UI\Base\Component\Input\InputUIBlockFactory;
use Combodo\iTop\Application\UI\Base\Component\Panel\Panel;
-use Combodo\iTop\Application\UI\Base\Component\Title\TitleFactory;
+use Combodo\iTop\Application\UI\Base\Component\Title\TitleUIBlockFactory;
use Combodo\iTop\Application\UI\Base\Component\Toolbar\Toolbar;
use Combodo\iTop\Application\UI\Base\Layout\MultiColumn\Column\Column;
use Combodo\iTop\Application\UI\Base\Layout\MultiColumn\MultiColumn;
@@ -268,7 +268,7 @@ EOF
$sName .= ' ('.$aLockInfo['owner']->Get('contactid_friendlyname').')';
}
$aResult['message'] = Dict::Format('UI:CurrentObjectIsLockedBy_User', $sName);
- $aMessages[] = AlertFactory::MakeForDanger('', Dict::Format('UI:CurrentObjectIsLockedBy_User', $sName));
+ $aMessages[] = AlertUIBlockFactory::MakeForDanger('', Dict::Format('UI:CurrentObjectIsLockedBy_User', $sName));
}
}
$sMessageKey = get_class($this).'::'.$this->GetKey();
@@ -281,16 +281,16 @@ EOF
$aRanks[] = $aMessageData['rank'];
switch ($aMessageData['severity']) {
case 'info':
- $aMessages[] = AlertFactory::MakeForInformation('', $aMessageData['message']);
+ $aMessages[] = AlertUIBlockFactory::MakeForInformation('', $aMessageData['message']);
break;
case 'ok':
- $aMessages[] = AlertFactory::MakeForSuccess('', $aMessageData['message']);
+ $aMessages[] = AlertUIBlockFactory::MakeForSuccess('', $aMessageData['message']);
break;
case 'warning':
- $aMessages[] = AlertFactory::MakeForWarning('', $aMessageData['message']);
+ $aMessages[] = AlertUIBlockFactory::MakeForWarning('', $aMessageData['message']);
break;
case 'error':
- $aMessages[] = AlertFactory::MakeForDanger('', $aMessageData['message']);
+ $aMessages[] = AlertUIBlockFactory::MakeForDanger('', $aMessageData['message']);
break;
}
}
@@ -424,7 +424,7 @@ EOF
// $sTags = '';
// }
- $oPage->AddUiBlock(TitleFactory::MakeForObjectDetails($this));
+ $oPage->AddUiBlock(TitleUIBlockFactory::MakeForObjectDetails($this));
}
/**
@@ -973,7 +973,7 @@ EOF
$val['value_raw'] = ($bExcludeRawValue === false) ? $this->Get($sAttCode) : '';
// The field is visible, add it to the current column
- $oField = FieldFactory::MakeFromParams($val);
+ $oField = FieldUIBlockFactory::MakeFromParams($val);
if ($sFieldsetName[0] != '_') {
$oFieldSet->AddSubBlock($oField);
} else {
@@ -1140,7 +1140,7 @@ HTML
$iListId = $aExtraParams['currentId'];
}
- return DataTableFactory::MakeForResult($oPage, $iListId, $oSet, $aExtraParams);
+ return DataTableUIBlockFactory::MakeForResult($oPage, $iListId, $oSet, $aExtraParams);
}
/**
* @param \WebPage $oPage
@@ -1886,7 +1886,7 @@ HTML
// predefined queries N°3227
$sPredefinedBtnId = 'predef_btn_'.$sFieldPrefix.$sAttCode.$sNameSuffix;
$sSearchQueryLbl = Dict::S('UI:Edit:SearchQuery');
- $oPredefQueryButton = ButtonFactory::MakeIconLink(
+ $oPredefQueryButton = ButtonUIBlockFactory::MakeIconLink(
'fas fa-search',
$sSearchQueryLbl,
null,
@@ -1926,7 +1926,7 @@ JS
$sTestResId = 'query_res_'.$sFieldPrefix.$sAttCode.$sNameSuffix; //$oPage->GetUniqueId();
$sBaseUrl = utils::GetAbsoluteUrlAppRoot().'pages/run_query.php?expression=';
$sTestQueryLbl = Dict::S('UI:Edit:TestQuery');
- $oTestQueryButton = ButtonFactory::MakeIconLink(
+ $oTestQueryButton = ButtonUIBlockFactory::MakeIconLink(
'fas fa-play',
$sTestQueryLbl,
null,
@@ -2489,7 +2489,7 @@ JS
$oPage->set_title(Dict::Format('UI:ModificationPageTitle_Object_Class', $this->GetRawName(),
$sClassLabel)); // Set title will take care of the encoding
- //$oContentBlock->AddSubBlock(TitleFactory::MakeForObjectDetails($this));
+ //$oContentBlock->AddSubBlock(TitleUIBlockFactory::MakeForObjectDetails($this));
// $oPage->add(<<
@@ -2551,15 +2551,15 @@ JS
if ($sMode === static::ENUM_OBJECT_MODE_EDIT) {
// The object already exists in the database, it's a modification
- $oForm->AddSubBlock(InputFactory::MakeForHidden('id', $iKey, "{$sPrefix}_id"));
+ $oForm->AddSubBlock(InputUIBlockFactory::MakeForHidden('id', $iKey, "{$sPrefix}_id"));
}
- $oForm->AddSubBlock(InputFactory::MakeForHidden('operation', $sOperation));
- $oForm->AddSubBlock(InputFactory::MakeForHidden('class', $sClass));
+ $oForm->AddSubBlock(InputUIBlockFactory::MakeForHidden('operation', $sOperation));
+ $oForm->AddSubBlock(InputUIBlockFactory::MakeForHidden('class', $sClass));
// Add transaction ID
$iTransactionId = isset($aExtraParams['transaction_id']) ? $aExtraParams['transaction_id'] : utils::GetNewTransactionId();
$oPage->SetTransactionId($iTransactionId);
- $oForm->AddSubBlock(InputFactory::MakeForHidden('transaction_id', $iTransactionId));
+ $oForm->AddSubBlock(InputUIBlockFactory::MakeForHidden('transaction_id', $iTransactionId));
// TODO 3.0.0: Is this (the if condition, not the code inside) still necessary?
if (isset($aExtraParams['wizard_container']) && $aExtraParams['wizard_container']) {
@@ -2570,7 +2570,7 @@ JS
$oPage->set_title(Dict::Format('UI:ModificationPageTitle_Object_Class', $this->GetRawName(),
$sClassLabel)); // Set title will take care of the encoding
- $oForm->AddSubBlock(TitleFactory::MakeForObjectDetails($this));
+ $oForm->AddSubBlock(TitleUIBlockFactory::MakeForObjectDetails($this));
// TODO 3.0.0: Refactor DisplayBareHeader and call it here
}
@@ -2589,10 +2589,10 @@ CSS
$oToolbarTop = new Toolbar();
$oToolbarTop->SetCSSClasses('ibo-toolbar ibo-toolbar-top');
- $oCancelButton = ButtonFactory::MakeForSecondaryAction(Dict::S('UI:Button:Cancel'));
+ $oCancelButton = ButtonUIBlockFactory::MakeForSecondaryAction(Dict::S('UI:Button:Cancel'));
$oCancelButton->AddCSSClasses('action cancel');
$oToolbarTop->AddSubBlock($oCancelButton);
- $oApplyButton = ButtonFactory::MakeForPrimaryAction($sApplyButton, null, null, true);
+ $oApplyButton = ButtonUIBlockFactory::MakeForPrimaryAction($sApplyButton, null, null, true);
$oApplyButton->AddCSSClasses('action');
$oToolbarTop->AddSubBlock($oApplyButton);
@@ -2606,7 +2606,7 @@ CSS
$sStimulusCode, $oSetToCheckRights) : UR_ALLOWED_NO;
switch ($iActionAllowed) {
case UR_ALLOWED_YES:
- $oButton = ButtonFactory::MakeForPrimaryAction($aStimuli[$sStimulusCode]->GetLabel(), 'next_action', $sStimulusCode, true);
+ $oButton = ButtonUIBlockFactory::MakeForPrimaryAction($aStimuli[$sStimulusCode]->GetLabel(), 'next_action', $sStimulusCode, true);
$oButton->AddCSSClasses('action');
$oButton->SetColor(Button::ENUM_COLOR_NEUTRAL);
$oToolbarTop->AddSubBlock($oButton);
@@ -2699,15 +2699,15 @@ EOF
}
$oPage->SetCurrentTab('');
- $oForm->AddSubBlock(InputFactory::MakeForHidden('class', $sClass));
- $oForm->AddSubBlock(InputFactory::MakeForHidden('transaction_id', $iTransactionId));
+ $oForm->AddSubBlock(InputUIBlockFactory::MakeForHidden('class', $sClass));
+ $oForm->AddSubBlock(InputUIBlockFactory::MakeForHidden('transaction_id', $iTransactionId));
foreach ($aExtraParams as $sName => $value) {
if (is_scalar($value)) {
- $oForm->AddSubBlock(InputFactory::MakeForHidden($sName, $value));
+ $oForm->AddSubBlock(InputUIBlockFactory::MakeForHidden($sName, $value));
}
}
if ($sOwnershipToken !== null) {
- $oForm->AddSubBlock(InputFactory::MakeForHidden('ownership_token', utils::HtmlEntities($sOwnershipToken)));
+ $oForm->AddSubBlock(InputUIBlockFactory::MakeForHidden('ownership_token', utils::HtmlEntities($sOwnershipToken)));
}
$oPage->add($oAppContext->GetForForm());
if ($sButtonsPosition != 'top') {
@@ -3035,15 +3035,14 @@ HTML
);
// Page title and subtitles
- $oPage->AddUiBlock(TitleFactory::MakeForPage($sActionLabel.' - '.$this->GetName()));
- if(!empty($sActionDetails)) {
- $oPage->AddUiBlock(TitleFactory::MakeForPage($sActionDetails));
+ $oPage->AddUiBlock(TitleUIBlockFactory::MakeForPage($sActionLabel.' - '.$this->GetName()));
+ if (!empty($sActionDetails)) {
+ $oPage->AddUiBlock(TitleUIBlockFactory::MakeForPage($sActionDetails));
}
$sButtonsPosition = MetaModel::GetConfig()->Get('buttons_position');
// Display object detail above if buttons must be displayed on the bottom
- if ($sButtonsPosition == 'bottom' && $bDisplayBareProperties)
- {
+ if ($sButtonsPosition == 'bottom' && $bDisplayBareProperties) {
// bottom: Displays the ticket details BEFORE the actions
$this->DisplayDetails($oPage, false, $sMode);
}
@@ -3054,15 +3053,14 @@ HTML
$oFormContainer->AddSubBlock($oForm);
$oForm->SetOnSubmitJsCode("return OnSubmit('apply_stimulus');")
- ->AddSubBlock(InputFactory::MakeForHidden('id', $this->GetKey(), 'id'))
- ->AddSubBlock(InputFactory::MakeForHidden('class', $sClass))
- ->AddSubBlock(InputFactory::MakeForHidden('operation', 'apply_stimulus'))
- ->AddSubBlock(InputFactory::MakeForHidden('stimulus', $sStimulus))
- ->AddSubBlock(InputFactory::MakeForHidden('transaction_id', $iTransactionId));
+ ->AddSubBlock(InputUIBlockFactory::MakeForHidden('id', $this->GetKey(), 'id'))
+ ->AddSubBlock(InputUIBlockFactory::MakeForHidden('class', $sClass))
+ ->AddSubBlock(InputUIBlockFactory::MakeForHidden('operation', 'apply_stimulus'))
+ ->AddSubBlock(InputUIBlockFactory::MakeForHidden('stimulus', $sStimulus))
+ ->AddSubBlock(InputUIBlockFactory::MakeForHidden('transaction_id', $iTransactionId));
- if ($sOwnershipToken !== null)
- {
- $oForm->AddSubBlock(InputFactory::MakeForHidden('ownership_token', utils::HtmlEntities($sOwnershipToken)));
+ if ($sOwnershipToken !== null) {
+ $oForm->AddSubBlock(InputUIBlockFactory::MakeForHidden('ownership_token', utils::HtmlEntities($sOwnershipToken)));
}
// Note: Remove the table is we want fields to occupy the whole width of the container
@@ -3073,11 +3071,11 @@ HTML
$oAppContext = new ApplicationContext();
$oForm->AddHtml($oAppContext->GetForForm());
- $oCancelButton = ButtonFactory::MakeForSecondaryAction(Dict::S('UI:Button:Cancel'), 'cancel', 'cancel');
+ $oCancelButton = ButtonUIBlockFactory::MakeForSecondaryAction(Dict::S('UI:Button:Cancel'), 'cancel', 'cancel');
$oCancelButton->SetOnClickJsCode("BackToDetails('{$sClass}', '{$this->GetKey()}', '', '{$sOwnershipToken}');");
$oForm->AddSubBlock($oCancelButton);
- $oSubmitButton = ButtonFactory::MakeForPrimaryAction($sActionLabel, 'submit', 'submit', true);
+ $oSubmitButton = ButtonUIBlockFactory::MakeForPrimaryAction($sActionLabel, 'submit', 'submit', true);
$oForm->AddSubBlock($oSubmitButton);
$oPage->add(<<GetTopBarLayout()->GetToolbar();
- $oActionButton = ButtonFactory::MakeLinkNeutral('', '', 'fas fa-ellipsis-v', $sName, '', $sMenuTogglerId);
+ $oActionButton = ButtonUIBlockFactory::MakeLinkNeutral('', '', 'fas fa-ellipsis-v', $sName, '', $sMenuTogglerId);
$oActionButton->AddCSSClasses("ibo-top-bar--toolbar-dashboard-menu-toggler");
$oToolbar->AddSubBlock($oActionButton);
diff --git a/application/displayblock.class.inc.php b/application/displayblock.class.inc.php
index 7b2c95dd8..cc1b48129 100644
--- a/application/displayblock.class.inc.php
+++ b/application/displayblock.class.inc.php
@@ -18,11 +18,11 @@
*/
use Combodo\iTop\Application\Search\SearchForm;
-use Combodo\iTop\Application\UI\Base\Component\Alert\AlertFactory;
+use Combodo\iTop\Application\UI\Base\Component\Alert\AlertUIBlockFactory;
use Combodo\iTop\Application\UI\Base\Component\Badge\BadgeFactory;
-use Combodo\iTop\Application\UI\Base\Component\Button\ButtonFactory;
+use Combodo\iTop\Application\UI\Base\Component\Button\ButtonUIBlockFactory;
use Combodo\iTop\Application\UI\Base\Component\Dashlet\DashletFactory;
-use Combodo\iTop\Application\UI\Base\Component\DataTable\DataTableFactory;
+use Combodo\iTop\Application\UI\Base\Component\DataTable\DataTableUIBlockFactory;
use Combodo\iTop\Application\UI\Base\Component\Html\Html;
use Combodo\iTop\Application\UI\Base\Component\Toolbar\Toolbar;
use Combodo\iTop\Application\UI\Base\iUIBlock;
@@ -133,51 +133,84 @@ class DisplayBlock
'group_by', /** string group by att code */
'group_by_expr', /** string group by expression */
'group_by_label', /** string aggregation column name */
- 'aggregation_function', /** string aggregation function ('count', 'sum', 'avg', 'min', 'max', ...) */
- 'aggregation_attribute', /** string att code used for aggregation */
- 'limit', /** int limit the chart results */
- 'order_by', /** string either 'attribute' group_by attcode or 'function' aggregation_function value */
- 'order_direction', /** string order direction 'asc' or 'desc' */
+ 'aggregation_function',
+ /** string aggregation function ('count', 'sum', 'avg', 'min', 'max', ...) */
+ 'aggregation_attribute',
+ /** string att code used for aggregation */
+ 'limit',
+ /** int limit the chart results */
+ 'order_by',
+ /** string either 'attribute' group_by attcode or 'function' aggregation_function value */
+ 'order_direction',
+ /** string order direction 'asc' or 'desc' */
],
'csv' => [],
'join' => array_merge([
- 'display_aliases', /** string comma separated list of class aliases to display */
- 'group_by', /** string group by att code */
- ], DataTableFactory::GetAllowedParams()),
- 'links' => DataTableFactory::GetAllowedParams(),
+ 'display_aliases',
+ /** string comma separated list of class aliases to display */
+ 'group_by',
+ /** string group by att code */
+ ], DataTableUIBlockFactory::GetAllowedParams()),
+ 'links' => DataTableUIBlockFactory::GetAllowedParams(),
'list' => array_merge([
- 'update_history', /** bool add breadcrumb entry */
- 'default', /** array of default attribute values */
- 'menu_actions_target', /** string html link target */
- 'toolkit_menu', /** bool add toolkit menu */
- ], DataTableFactory::GetAllowedParams()),
+ 'update_history',
+ /** bool add breadcrumb entry */
+ 'default',
+ /** array of default attribute values */
+ 'menu_actions_target',
+ /** string html link target */
+ 'toolkit_menu',
+ /** bool add toolkit menu */
+ ], DataTableUIBlockFactory::GetAllowedParams()),
'list_search' => array_merge([
- 'update_history', /** bool add breadcrumb entry */
- 'result_list_outer_selector', /** string js selector of the search result display */
- 'table_inner_id', /** string html id of the results table */
- 'json', /** string */
- 'hidden_criteria', /** string search criteria not visible */
- 'baseClass', /** string base class */
- 'action', /** string */
- 'open', /** bool open by default the search */
- ], DataTableFactory::GetAllowedParams()),
+ 'update_history',
+ /** bool add breadcrumb entry */
+ 'result_list_outer_selector',
+ /** string js selector of the search result display */
+ 'table_inner_id',
+ /** string html id of the results table */
+ 'json',
+ /** string */
+ 'hidden_criteria',
+ /** string search criteria not visible */
+ 'baseClass',
+ /** string base class */
+ 'action',
+ /** string */
+ 'open',
+ /** bool open by default the search */
+ ], DataTableUIBlockFactory::GetAllowedParams()),
'search' => array_merge([
- 'baseClass', /** string search root class */
- 'open', /** bool open the search panel by default */
- 'result_list_outer_selector', /** string js selector of the search result display */
- 'search_header_force_dropdown', /** string Search class selection dropdown html code */
- 'action', /** string search URL */
- 'table_inner_id', /** string html id of the results table */
- 'json', /** string */
- 'hidden_criteria', /** string search criteria not visible */
- 'class', /** string class searched */
- ], DataTableFactory::GetAllowedParams()),
+ 'baseClass',
+ /** string search root class */
+ 'open',
+ /** bool open the search panel by default */
+ 'result_list_outer_selector',
+ /** string js selector of the search result display */
+ 'search_header_force_dropdown',
+ /** string Search class selection dropdown html code */
+ 'action',
+ /** string search URL */
+ 'table_inner_id',
+ /** string html id of the results table */
+ 'json',
+ /** string */
+ 'hidden_criteria',
+ /** string search criteria not visible */
+ 'class',
+ /** string class searched */
+ ], DataTableUIBlockFactory::GetAllowedParams()),
'summary' => [
- 'status[block]', /** string object 'status' att code */
- 'status_codes[block]', /** string comma separated list of object states */
- 'title[block]', /** string title */
- 'label[block]', /** string label */
- 'context_filter', /** int if != 0 filter with user context */
+ 'status[block]',
+ /** string object 'status' att code */
+ 'status_codes[block]',
+ /** string comma separated list of object states */
+ 'title[block]',
+ /** string title */
+ 'label[block]',
+ /** string label */
+ 'context_filter',
+ /** int if != 0 filter with user context */
],
];
@@ -390,7 +423,7 @@ class DisplayBlock
Exception thrown:
{$e->getMessage()}
HTML;
- $oExceptionAlert = AlertFactory::MakeForFailure('Cannot display results', $sExceptionContent);
+ $oExceptionAlert = AlertUIBlockFactory::MakeForFailure('Cannot display results', $sExceptionContent);
$oHtml->AddSubBlock($oExceptionAlert);
}
IssueLog::Error('Exception during GetDisplay: '.$e->getMessage());
@@ -1077,7 +1110,7 @@ JS
);
$sFormat = isset($aExtraParams['format']) ? $aExtraParams['format'] : 'UI:Pagination:HeaderNoSelection';
$sTitle = Dict::Format($sFormat, $iTotalCount);
- $oBlock = DataTableFactory::MakeForStaticData($sTitle, $aAttribs, $aData);
+ $oBlock = DataTableUIBlockFactory::MakeForStaticData($sTitle, $aAttribs, $aData);
} else {
// Simply count the number of elements in the set
@@ -1159,7 +1192,7 @@ JS
} else {
$iListId = $aExtraParams['currentId'];
}
- $oBlock->AddSubBlock(DataTableFactory::MakeForObject($oPage, $iListId, $this->m_oSet, $aExtraParams));
+ $oBlock->AddSubBlock(DataTableUIBlockFactory::MakeForObject($oPage, $iListId, $this->m_oSet, $aExtraParams));
} else {
// Empty set
$oBlock->bEmptySet = true;
@@ -1310,7 +1343,7 @@ JS
} else {
$iListId = $aExtraParams['currentId'];
}
- $oBlock = DataTableFactory::MakeForRendering($iListId, $oSet, $aExtraParams);
+ $oBlock = DataTableUIBlockFactory::MakeForRendering($iListId, $oSet, $aExtraParams);
$oHtml->AddHtml("
$sIcon ".utils::HtmlEntities(Dict::S($sTitle))."
"); $oPage->add("'.Dict::S('config-edit-intro').'
')); $oForm = new Form(); - $oForm->AddSubBlock(InputFactory::MakeForHidden('operation', 'save')); - $oForm->AddSubBlock(InputFactory::MakeForHidden('transaction_id', utils::GetNewTransactionId())); + $oForm->AddSubBlock(InputUIBlockFactory::MakeForHidden('operation', 'save')); + $oForm->AddSubBlock(InputUIBlockFactory::MakeForHidden('transaction_id', utils::GetNewTransactionId())); // - Cancel button - $oCancelButton = ButtonFactory::MakeForSecondaryAction(Dict::S('config-cancel'), 'cancel_button', null, true, 'cancel_button'); + $oCancelButton = ButtonUIBlockFactory::MakeForSecondaryAction(Dict::S('config-cancel'), 'cancel_button', null, true, 'cancel_button'); $oCancelButton->SetOnClickJsCode("return ResetConfig();"); $oForm->AddSubBlock($oCancelButton); // - Submit button - $oSubmitButton = ButtonFactory::MakeForPrimaryAction(Dict::S('config-apply'), null, Dict::S('config-apply'), true, 'submit_button'); + $oSubmitButton = ButtonUIBlockFactory::MakeForPrimaryAction(Dict::S('config-apply'), null, Dict::S('config-apply'), true, 'submit_button'); $oForm->AddSubBlock($oSubmitButton); - $oForm->AddSubBlock(InputFactory::MakeForHidden('prev_config', $sOriginalConfigEscaped, 'prev_config')); - $oForm->AddSubBlock(InputFactory::MakeForHidden('new_config', $sConfigEscaped)); + $oForm->AddSubBlock(InputUIBlockFactory::MakeForHidden('prev_config', $sOriginalConfigEscaped, 'prev_config')); + $oForm->AddSubBlock(InputUIBlockFactory::MakeForHidden('new_config', $sConfigEscaped)); $oForm->AddHtml(""); $oP->AddUiBlock($oForm); diff --git a/datamodels/2.x/itop-core-update/view/SelectUpdateFile.html.twig b/datamodels/2.x/itop-core-update/view/SelectUpdateFile.html.twig index 429ecce76..54972f03a 100644 --- a/datamodels/2.x/itop-core-update/view/SelectUpdateFile.html.twig +++ b/datamodels/2.x/itop-core-update/view/SelectUpdateFile.html.twig @@ -2,50 +2,48 @@ {# @license http://opensource.org/licenses/AGPL-3.0 #} {% apply spaceless %} -{% UIContentBlock {'container_class':'ibo-update-core'} %} +{% UIContentBlock Standard {'sContainerClass':'ibo-update-core'} %} -{% UITitle ForPage {'title':'iTopUpdate:UI:PageTitle'|dict_s} %} +{% UITitle ForPage {'sTitle':'iTopUpdate:UI:PageTitle'|dict_s} %} {% UIHtml %}