{{#if session.isGlobalAdmin}}

{{localize 'backup_explain1'}}

{{else}}

{{localize 'backup_explain2'}}

{{/if}}

{{localize 'backup_explain3'}}

{{#ui/ui-checkbox selected=backupSpec.retain}} {{localize 'backup_retain'}} {{/ui/ui-checkbox}}
{{#if backupRunning}}

{{localize 'backup_running'}}

{{else}} {{ui/ui-button color=constants.Color.Yellow light=true icon=constants.Icon.Database label=(concat (localize 'backup_tenant') " " appMeta.appHost) onClick=(action "onBackup")}} {{#if session.isGlobalAdmin}} {{ui/ui-button-gap}} {{ui/ui-button color=constants.Color.Yellow light=true icon=constants.Icon.Database label=(localize 'backup_system') onClick=(action "onSystemBackup")}} {{/if}} {{/if}} {{#if backupFailed}}
{{localize 'backup_failed'}}
{{/if}} {{#if backupSuccess}}
{{localize 'backup_success'}} ({{backupFilename}})
{{/if}}
{{#if session.isGlobalAdmin}}

{{localize 'restore_explain1'}}

{{/if}}

{{localize 'restore_explain2'}}

{{localize 'restore_explain3'}}

{{#if restoreFailed}}
{{localize 'restore_failed'}}
{{else if restoreSuccess}}
{{localize 'restore_success'}}
{{else}} {{#if restoreUploadReady}} {{ui/ui-button color=constants.Color.Red light=false icon=constants.Icon.Database label=restoreButtonLabel onClick=(action "onShowRestoreModal")}} {{/if}} {{/if}}