mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Primeros pasos sistema backup
This commit is contained in:
28
ci4/app/Views/themes/vuexy/form/backups/backupList.php
Normal file
28
ci4/app/Views/themes/vuexy/form/backups/backupList.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?= $this->include("themes/_commonPartialsBs/select2bs5") ?>
|
||||
<?= $this->include("themes/_commonPartialsBs/datatables") ?>
|
||||
<?= $this->extend('themes/vuexy/main/defaultlayout') ?>
|
||||
|
||||
<?= $this->section('content'); ?>
|
||||
<!--Content Body-->
|
||||
<div class="row mt-4">
|
||||
<div class="col-md-12">
|
||||
|
||||
<h2>Backups disponibles</h2>
|
||||
<a href="<?= route_to('backupsCreate') ?>">Crear backup</a>
|
||||
<ul>
|
||||
<?php foreach ($files as $file): ?>
|
||||
<li>
|
||||
<?= $file ?>
|
||||
<a href="<?= base_url('backups/restore/' . $file) ?>">[Restaurar]</a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?= session('message') ?>
|
||||
</div>
|
||||
</div>
|
||||
<?= $this->endSection() ?>
|
||||
|
||||
<?= $this->section('additionalInlineJs') ?>
|
||||
|
||||
|
||||
<?= $this->endSection() ?>
|
||||
@ -3,7 +3,7 @@
|
||||
* SEPARADOR Y MENUS DE SISTEMA
|
||||
*/
|
||||
|
||||
if (auth()->user()->can('actividad.menu')) {
|
||||
if (auth()->user()->can('actividad.menu') || auth()->user()->can('backup.menu')) {
|
||||
?>
|
||||
<li class="menu-header small text-uppercase">
|
||||
<span class="menu-header-text">Sistema</span>
|
||||
@ -23,4 +23,20 @@ if (auth()->user()->can('actividad.menu')) {
|
||||
</a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
/**
|
||||
* MENU BACKUP
|
||||
*/
|
||||
if (auth()->user()->can('backup.menu')) {
|
||||
?>
|
||||
<!-- Backups -->
|
||||
<li class="menu-item">
|
||||
<a href="<?= route_to("backupsList") ?>" class="menu-link">
|
||||
<i class="menu-icon tf-icons ti ti-database-import"></i>
|
||||
<div data-i18n="<?= lang("App.menu_backups") ?>"><?= lang("App.menu_backups") ?></div>
|
||||
</a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
Reference in New Issue
Block a user