new options

This commit is contained in:
Mateusz Gruszczyński
2025-02-24 10:18:52 +01:00
parent f58e2c5da0
commit 04c1e6d49a
8 changed files with 81 additions and 23 deletions

View File

@ -2,6 +2,18 @@
{% block title %}Logi - Aplikacja Updatera{% endblock %}
{% block content %}
<h2>Logi</h2>
<!-- Formularz kasowania logów starszych niż podana liczba dni -->
<div class="mt-4">
<h4>Usuń logi starsze niż podana liczba dni</h4>
<form method="POST" action="{{ url_for('clean_logs') }}">
<div class="mb-3">
<label for="days" class="form-label">Liczba dni</label>
<input type="number" class="form-control" name="days" id="days" placeholder="Podaj liczbę dni">
</div>
<button type="submit" class="btn btn-danger">Usuń logi</button>
</form>
</div>
<hr>
<table class="table table-striped">
<thead class="table-dark">
<tr>
@ -30,4 +42,5 @@
{% endfor %}
</tbody>
</table>
{% endblock %}