69 lines
2.2 KiB
Smarty
69 lines
2.2 KiB
Smarty
<h3>
|
|
Module backups
|
|
<span class="panel-heading-action">
|
|
<a id="desc-cms_category-new" class="list-toolbar-btn"
|
|
href="{$link->getAdminLink("{$PSHOW_MODULE_CLASS_NAME_}Backup", true)}&page=backup">
|
|
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="Dodaj nowy" data-html="true" data-placement="top">
|
|
<i class="process-icon-new"></i>
|
|
</span>
|
|
</a>
|
|
</span>
|
|
</h3>
|
|
|
|
<div class="alert alert-info">
|
|
{l s='Backup stores only files' mod='skeleton'}
|
|
</div>
|
|
|
|
{if count($backups) > 0}
|
|
|
|
<table class="table table-hover">
|
|
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>{l s='Filename' mod='skeleton'}</th>
|
|
<th>{l s='Version' mod='skeleton'} </th>
|
|
<th>{l s='Date' mod='skeleton'}</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{assign var='i' value=1}
|
|
|
|
{foreach from=$backups item='backup'}
|
|
|
|
<tr>
|
|
<td>{$i}</td>
|
|
<td>{$backup['filename']}.zip</td>
|
|
<td>{$backup['version']}</td>
|
|
<td>{$backup['time']|replace:".":":"} {$backup['date']}</td>
|
|
<td class="text-right">
|
|
<a href="{$link->getAdminLink("{$PSHOW_MODULE_CLASS_NAME_}Backup", true)}&page=remove&filename={$backup['filename']}" class="btn btn-warning">
|
|
<i class="icon-trash"></i>
|
|
{l s='Remove' mod='skeleton'}
|
|
</a>
|
|
<a href="{$link->getAdminLink("{$PSHOW_MODULE_CLASS_NAME_}Backup", true)}&page=restorebackup&filename={$backup['filename']}.zip" class="btn btn-danger">
|
|
<i class="icon-retweet"></i>
|
|
{l s='Restore' mod='skeleton'}
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
|
|
{assign var='i' value=$i+1}
|
|
|
|
{/foreach}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{else}
|
|
|
|
<div class="alert alert-info">
|
|
{l s='You don\'t have any backups' mod='skeleton'}
|
|
</div>
|
|
|
|
{/if}
|