hosts_app/templates/backups.html
Mateusz Gruszczyński d1d0ccc311 refactor
2025-02-24 23:08:03 +01:00

30 lines
973 B
HTML

{% extends "base.html" %}
{% block title %}Backups - /etc/hosts Manager{% endblock %}
{% block content %}
<h2>Backups</h2>
<a href="{{ url_for('backup_all') }}" class="btn btn-primary mb-3">Backup All</a>
<table class="table table-striped">
<thead>
<tr>
<th>Data utworzenia</th>
<th>Opis</th>
<th>Akcje</th>
</tr>
</thead>
<tbody>
{% for backup in backups %}
<tr>
<td>{{ backup.created_at.strftime("%Y-%m-%d %H:%M:%S") }}</td>
<td>{{ backup.description }}</td>
<td>
<a href="{{ url_for('view_backup', backup_id=backup.id) }}" class="btn btn-sm btn-info">Podgląd</a>
<form action="{{ url_for('delete_backup', backup_id=backup.id) }}" method="post" style="display:inline;">
<button type="submit" class="btn btn-sm btn-danger" onclick="return confirm('Czy na pewno usunąć backup?');">Usuń</button>
</form>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}