Admidio/admidio

View on GitHub
adm_program/installation/templates/update.tpl

Summary

Maintainability
Test Coverage

<h3>{$l10n->get('INS_WELCOME_TO_UPDATE')}</h3>

<p>{$l10n->get(
                'INS_WELCOME_TEXT_UPDATE',
                array(ADMIDIO_VERSION_TEXT,
                    $installedDbVersion,
                    '<a href="https://www.admidio.org/dokuwiki/doku.php?id=en:2.0:update" target="_blank">',
                    '</a>',
                    '<a href="https://www.admidio.org/forum" target="_blank">',
                    '</a>'
                )
            )}</p>

<p class="fw-bolder">{$l10n->get('SYS_CURRENT_DATABASE_VERSION')}: {$installedDbVersion}</p>
<p class="fw-bolder">{$l10n->get('SYS_DATABASE_VERSION_AFTER_UPDATE')}: {ADMIDIO_VERSION_TEXT}</p>

{* if this is a beta version then show a warning message *}
{if ADMIDIO_VERSION_BETA > 0}
    <div class="alert alert-warning alert-small" role="alert">
        <i class="bi bi-exclamation-triangle-fill"></i>
        {$l10n->get('INS_WARNING_BETA_VERSION')}
    </div>
{/if}

<form {foreach $attributes as $attribute}
{$attribute@key}="{$attribute}"
{/foreach}>
    {include 'sys-template-parts/form.input.tpl' data=$elements['admidio-csrf-token']}
    {if {array_key_exists array=$elements key='login_name'}}
        <p>{$l10n->get('INS_ADMINISTRATOR_LOGIN_DESC')}</p>
        {include 'sys-template-parts/form.input.tpl' data=$elements['login_name']}
        {include 'sys-template-parts/form.input.tpl' data=$elements['password']}
    {/if}
    <div class="form-alert" style="display: none;">&nbsp;</div>
    {include 'sys-template-parts/form.button.tpl' data=$elements['next_page']}
</form>