N°3567 - Migrate backoffice pages to new UIBlock system : App. upgrade (Fix default values and typos)

This commit is contained in:
Eric
2021-01-20 15:01:27 +01:00
parent d54e156ec2
commit 959cecf891
2 changed files with 3 additions and 3 deletions

View File

@@ -33,7 +33,7 @@
{% if bDoFilesArchive %}
{% UIContentBlock Standard {'sId':'do_files_archive_done','sContainerClass':'ibo-update-core--archive-done', 'IsHidden':true} %}
{% UIField Large {'sLabel':''iTopUpdate:UI:WithFilesBackup'|dict_s', 'sValueHtml':''} %}{% EndUIField %}
{% UIField Large {'sLabel':'iTopUpdate:UI:WithFilesBackup'|dict_s} %}{% EndUIField %}
{% UIAlert ForSuccess {'sContent':sItopArchive} %}{% EndUIAlert %}
{% EndUIContentBlock %}
{% endif %}

View File

@@ -76,14 +76,14 @@ class FieldUIBlockFactory extends AbstractUIBlockFactory
return $oField;
}
public static function MakeLarge(string $sLabel, $sValueHtml)
public static function MakeLarge(string $sLabel, string $sValueHtml = '')
{
$oField = new Field($sLabel, new Html($sValueHtml));
$oField->SetLayout(Field::ENUM_FIELD_LAYOUT_LARGE);
return $oField;
}
public static function MakeSmall(string $sLabel, $sValueHtml)
public static function MakeSmall(string $sLabel, string $sValueHtml = '')
{
$oField = new Field($sLabel, new Html($sValueHtml));
$oField->SetLayout(Field::ENUM_FIELD_LAYOUT_SMALL);