64 lines
2.2 KiB
HTML
64 lines
2.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Settings</title>
|
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
|
|
<style>
|
|
body {
|
|
background-color: #343a40;
|
|
color: #f8f9fa;
|
|
}
|
|
.card {
|
|
background-color: #495057;
|
|
border: 1px solid #6c757d;
|
|
border-radius: 0.25rem;
|
|
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
|
|
}
|
|
.card-title {
|
|
font-size: 1.25rem;
|
|
font-weight: 500;
|
|
color: #f8f9fa;
|
|
}
|
|
.card-text {
|
|
font-size: 1rem;
|
|
color: #ced4da;
|
|
}
|
|
.btn-primary {
|
|
background-color: #007bff;
|
|
border-color: #007bff;
|
|
}
|
|
.btn-primary:hover {
|
|
background-color: #0056b3;
|
|
border-color: #004085;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container mt-5">
|
|
<h1 class="text-center mb-4">Settings</h1>
|
|
<div class="card mb-4">
|
|
<div class="card-body">
|
|
<h5 class="card-title">Set Cleanup Time</h5>
|
|
<form action="{{ url_for('set_cleanup_time') }}" method="post">
|
|
<div class="form-group">
|
|
<label for="cleanup_time">Cleanup Time (in hours):</label>
|
|
<input type="number" class="form-control" id="cleanup_time" name="cleanup_time" value="{{ cleanup_time }}" required>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Set Time</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<div class="card mb-4">
|
|
<div class="card-body">
|
|
<h5 class="card-title">Run Cleanup Now</h5>
|
|
<form action="{{ url_for('run_cleanup_now') }}" method="post">
|
|
<button type="submit" class="btn btn-danger">Run Cleanup Now</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<a href="{{ url_for('index') }}" class="btn btn-secondary">Back to Main Page</a>
|
|
</div>
|
|
</body>
|
|
</html> |