mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-29 13:38:44 +02:00
71 lines
3.8 KiB
Twig
71 lines
3.8 KiB
Twig
{# @copyright Copyright (C) 2010-2019 Combodo SARL #}
|
|
{# @license http://opensource.org/licenses/AGPL-3.0 #}
|
|
|
|
{% apply spaceless %}
|
|
|
|
{% UIContentBlock Standard {'aContainerClasses': ['ibo-update-core'], 'display_block', 'display-files']} %}
|
|
|
|
{% UIFieldSet Standard {'sLegend':'iTopUpdate:UI:Progress'|dict_s, 'sId':'installation_progress'} %}
|
|
{# Todo 3.0 Add Progress bar UIBlock #}
|
|
<div id="progress_content">
|
|
<p class="center">
|
|
<span id="setup_msg">{{ 'iTopUpdate:UI:SetupMessage:Ready'|dict_s }}</span>
|
|
</p>
|
|
<div id="progress">0%</div>
|
|
</div>
|
|
{% EndUIFieldSet %}
|
|
|
|
{% UIFieldSet Standard {'sLegend':'iTopUpdate:UI:Status'|dict_s} %}
|
|
{% UIField Large {'sId':'new_version', 'sLabel':'iTopUpdate:UI:NewVersion'|dict_s, 'ValueId':'db-disk-space', 'IsHidden':true} %}{% EndUIField %}
|
|
{% UIAlert ForInformation {'sId':'current_version', 'IsCollapsible':false, 'IsClosable':false} %}
|
|
{% UIContentBlock Standard {'sId':'current-version','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 %}
|
|
{% 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 %}
|
|
{% endif %}
|
|
{% EndUIFieldSet %}
|
|
|
|
{% 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 %}
|
|
{% if bDoFilesArchive %}
|
|
{{ 'iTopUpdate:UI:RestoreArchive'|dict_format(sItopArchive) }}
|
|
{% endif %}
|
|
{% if bDoBackup %}
|
|
{{ 'iTopUpdate:UI:RestoreBackup'|dict_format(sBackupFile) }}
|
|
{% endif %}
|
|
{{ 'iTopUpdate:UI:MaintenanceModeActive'|dict_s }}
|
|
{% EndUIAlert %}
|
|
|
|
{% 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 %}
|
|
|
|
{% UIForm Standard {'CSSClasses':['form-inline']} %}
|
|
{% UIButton ForPrimaryAction {'sLabel':'iTopUpdate:UI:Continue'|dict_s, 'sId':'setup_continue', 'bIsSubmit':true, 'IsDisabled':false} %}
|
|
{% EndUIForm %}
|
|
|
|
{% EndUIFieldSet %}
|
|
|
|
{% EndUIContentBlock %}
|
|
{% endapply %} |