diff --git a/datamodels/2.x/itop-core-update/view/ConfirmUpdate.html.twig b/datamodels/2.x/itop-core-update/view/ConfirmUpdate.html.twig
index 4fc1e1f51..18c6264cf 100644
--- a/datamodels/2.x/itop-core-update/view/ConfirmUpdate.html.twig
+++ b/datamodels/2.x/itop-core-update/view/ConfirmUpdate.html.twig
@@ -30,11 +30,11 @@
{% UIFieldSet Standard {'sLegend':'iTopUpdate:UI:Action'|dict_s} %}
{% UIAlert ForWarning {'sContent':'iTopUpdate:UI:WarningReadOnlyDuringUpdate'|dict_s, 'IsCollapsible':false, 'IsClosable':false} %}{% EndUIAlert %}
- {% UIContentBlock Standard {sId:"", aContainerClasses:["ibo-setup--button-bar"]} %}
+ {% UIContentBlock Standard {aContainerClasses:["ibo-setup--button-bar"]} %}
{% UIForm Standard {'CSSClasses':['form-inline']} %}
{% UIButton ForSecondaryAction {'sId':'cancel-update', 'sLabel':'iTopUpdate:UI:Cancel'|dict_s, 'bIsSubmit':true} %}
{% EndUIForm %}
- {% UIContentBlock Standard {sId:"", aContainerClasses:["ibo-setup--button-spacer"]} %}{% EndUIContentBlock %}
+ {% UIContentBlock Standard {aContainerClasses:["ibo-setup--button-spacer"]} %}{% EndUIContentBlock %}
{% UIForm Standard {'CSSClasses':['form-inline']} %}
{% UIButton ForPrimaryAction {'sId':'do-update', 'sLabel':'iTopUpdate:UI:DoUpdate'|dict_s, 'bIsSubmit':true} %}
{% UISpinner Standard {'sId':'submit-wait', 'IsHidden':true} %}
diff --git a/datamodels/2.x/itop-core-update/view/UpdateCoreFiles.html.twig b/datamodels/2.x/itop-core-update/view/UpdateCoreFiles.html.twig
index 5ceb241c8..24ea7a5c6 100644
--- a/datamodels/2.x/itop-core-update/view/UpdateCoreFiles.html.twig
+++ b/datamodels/2.x/itop-core-update/view/UpdateCoreFiles.html.twig
@@ -3,9 +3,9 @@
{% apply spaceless %}
- {% UIContentBlock Standard {'aContainerClasses': ['ibo-update-core', 'display_block', 'display-files']} %}
+ {% UIContentBlock Standard {aContainerClasses: ['ibo-update-core', 'display_block', 'display-files']} %}
- {% UIFieldSet Standard {'sLegend':'iTopUpdate:UI:Progress'|dict_s, 'sId':'installation_progress'} %}
+ {% UIFieldSet Standard {sLegend:'iTopUpdate:UI:Progress'|dict_s, sId:'installation_progress'} %}
{# Todo 3.0 Add Progress bar UIBlock #}
{% EndUIFieldSet %}
- {% UIFieldSet Standard {'sLegend':'iTopUpdate:UI:Status'|dict_s} %}
- {% UIField Large {'sId':'new_version', 'sLabel':'iTopUpdate:UI:NewVersion'|dict_s, 'IsHidden':true} %}{% EndUIField %}
- {% UIAlert ForInformation {'sId':'current_version', 'IsCollapsible':false, 'IsClosable':false} %}
- {% UIContentBlock Standard {'sId':'current-version','aContainerClasses':['ibo-update-core--current-version']} %}
+ {% UIFieldSet Standard {sLegend:'iTopUpdate:UI:Status'|dict_s} %}
+ {% UIAlert ForSuccess {sId:'new_version', sTitle:'iTopUpdate:UI:NewVersion'|dict_s, IsHidden:true, IsCollapsible:false, IsClosable:false} %}
+ {% UIContentBlock Standard {aContainerClasses:['ibo-update-core--current-version']} %}
+ {{ sCurrentVersion }}
+ {% EndUIContentBlock %}
+ {% EndUIAlert %}
+ {% UIAlert ForInformation {sId:'current_version', IsCollapsible:false, IsClosable:false} %}
+ {% UIContentBlock Standard {aContainerClasses:['ibo-update-core--current-version']} %}
{{ sCurrentVersion }}
{% EndUIContentBlock %}
{% EndUIAlert %}
{% if bDoBackup %}
- {% UIContentBlock Standard {'sId':'do_backup_done','aContainerClasses':['ibo-update-core--backup-done'], 'IsHidden':true} %}
- {% UIField Standard {'sLabel':'iTopUpdate:UI:WithDBBackup'|dict_s, 'sLayout':'large'} %}
- {% UIAlert ForInformation {'sContent':sBackupFile} %}{% EndUIAlert %}
- {% EndUIField %}
- {% EndUIContentBlock %}
+ {% UIAlert ForInformation {sId:'do_backup_done', sTitle:'iTopUpdate:UI:WithDBBackup'|dict_s, sContent:sBackupFile, IsHidden:true} %}{% EndUIAlert %}
{% endif %}
{% if bDoFilesArchive %}
- {% UIContentBlock Standard {'sId':'do_files_archive_done','aContainerClasses':['ibo-update-core--archive-done'], 'IsHidden':true} %}
- {% UIField Large {'sLabel':'iTopUpdate:UI:WithFilesBackup'|dict_s} %}{% EndUIField %}
- {% UIAlert ForSuccess {'sContent':sItopArchive} %}{% EndUIAlert %}
- {% EndUIContentBlock %}
+ {% UIAlert ForInformation {sId:'do_files_archive_done', sTitle:'iTopUpdate:UI:WithFilesBackup'|dict_s, sContent:sItopArchive, IsHidden:true} %}{% EndUIAlert %}
{% endif %}
{% EndUIFieldSet %}
- {% UIFieldSet Standard {'sLegend':''} %}
+ {% UIFieldSet Standard {sLegend:''} %}
- {% UIAlert ForFailure {'sId':'setup_error_outer', 'sContent':'', 'IsCollapsible':false, 'IsClosable':false, 'IsHidden':true} %}
- {% UIContentBlock Standard {'sId':'setup_error','aContainerClasses':['ibo-update-core--error']} %}{% EndUIContentBlock %}
+ {% UIAlert ForFailure {sId:'setup_error_outer', sContent:'', IsCollapsible:false, IsClosable:false, IsHidden:true} %}
+ {% UIContentBlock Standard {sId:'setup_error',aContainerClasses:['ibo-update-core--error']} %}{% EndUIContentBlock %}
{% if bDoFilesArchive %}
{{ 'iTopUpdate:UI:RestoreArchive'|dict_format(sItopArchive) }}
{% endif %}
@@ -52,18 +49,18 @@
{{ 'iTopUpdate:UI:MaintenanceModeActive'|dict_s }}
{% EndUIAlert %}
- {% UIContentBlock Standard {sId:"", aContainerClasses:["ibo-setup--button-bar"]} %}
- {% UIContentBlock Standard {'sId':'run_setup','aContainerClasses':['ibo-update-core--run-setup'], 'IsHidden':true} %}
- {% UIForm Standard {'CSSClasses':['form-inline']} %}
- {% UIInput ForHidden {'sName':'operation', 'sValue':'RunSetup'} %}
- {% UIInput ForHidden {'sName':'authent', 'sValue':sSetupToken} %}
- {% UIInput ForHidden {'sName':'', 'sValue':''} %}
- {% UIButton ForPrimaryAction {'sLabel':'iTopUpdate:UI:RunSetup'|dict_s, 'sId':'run_setup', 'bIsSubmit':true, 'IsDisabled':false} %}
+ {% UIContentBlock Standard {aContainerClasses:["ibo-setup--button-bar"]} %}
+ {% UIContentBlock Standard {sId:'run_setup',aContainerClasses:['ibo-update-core--run-setup'], IsHidden:true} %}
+ {% UIForm Standard {CSSClasses:['form-inline']} %}
+ {% UIInput ForHidden {sName:'operation', sValue:'RunSetup'} %}
+ {% UIInput ForHidden {sName:'authent', sValue:sSetupToken} %}
+ {% UIInput ForHidden {sName:'', sValue:''} %}
+ {% UIButton ForPrimaryAction {sLabel:'iTopUpdate:UI:RunSetup'|dict_s, sId:'run_setup', bIsSubmit:true, IsDisabled:false} %}
{% EndUIForm %}
{% EndUIContentBlock %}
- {% UIContentBlock Standard {sId:"", aContainerClasses:["ibo-setup--button-spacer"]} %}{% EndUIContentBlock %}
- {% UIForm Standard {'CSSClasses':['form-inline']} %}
- {% UIButton ForPrimaryAction {'sLabel':'iTopUpdate:UI:Continue'|dict_s, 'sId':'setup_continue', 'bIsSubmit':true, 'IsDisabled':true} %}
+ {% UIContentBlock Standard {aContainerClasses:["ibo-setup--button-spacer"]} %}{% EndUIContentBlock %}
+ {% UIForm Standard {CSSClasses:['form-inline']} %}
+ {% UIButton ForPrimaryAction {sLabel:'iTopUpdate:UI:Continue'|dict_s, sId:'setup_continue', bIsSubmit:true, IsDisabled:true} %}
{% EndUIForm %}
{% EndUIContentBlock %}
diff --git a/datamodels/2.x/itop-core-update/view/UpdateCoreFiles.ready.js.twig b/datamodels/2.x/itop-core-update/view/UpdateCoreFiles.ready.js.twig
index 26393ccb4..ccda9abcf 100644
--- a/datamodels/2.x/itop-core-update/view/UpdateCoreFiles.ready.js.twig
+++ b/datamodels/2.x/itop-core-update/view/UpdateCoreFiles.ready.js.twig
@@ -20,7 +20,7 @@ var oGetCurrentVersion = {
dataType: "json",
success: function(data)
{
- var oCurrentVersion = $("#current-version");
+ var oCurrentVersion = $(".ibo-update-core--current-version");
if (oCurrentVersion)
{
oCurrentVersion.html(data.sVersion);
@@ -115,10 +115,9 @@ function ExecNextStep() {
$("#setup_continue").prop("disabled", false);
$('#installation_progress').hide(300);
$('#new_version').removeClass("ibo-is-hidden");
- $("#current_version").removeClass("ibo-is-information").addClass("ibo-is-success");
+ $('#current_version').addClass("ibo-is-hidden");
}
}
-$("#setup_continue").prop("disabled", true);
ExecNextStep();