{extends file="[shared]/frame.tpl"}

{block title}
    {$body.title}
{/block}

{block content}
    <div class="form-group">
        <div class="col-md-12">
            <strong>{$body.title}: </strong>{$body.upgrade}
        </div>
        {foreach $body.upgrade_message as $message}
        <div class="col-md-11 col-md-offset-1">
            {$message}
        </div>
        {/foreach}
        {if $body.sync_data}
        <div class="col-md-11 col-md-offset-1">
            {if !empty($body.sync_data.period)}
                <b>Period:</b> {$body.sync_data.period}<br>
            {/if}
            {if !empty($body.sync_data.error)}
                <b>Errors: </b><br>
                {foreach $body.sync_data.error as $message}
                    {$message}<br>
                {/foreach}
            {/if}
            {if !empty($body.sync_data.success)}
                <b>Success: </b><br>
                {foreach $body.sync_data.success as $message}
                    {$message}<br>
                {/foreach}
            {/if}
        </div>
        {/if}
    </div>
{/block}
