77 lines
2.9 KiB
HTML
77 lines
2.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta name="description" content="PacCrypt - Admin Settings" />
|
|
<title>Admin Settings - PacCrypt</title>
|
|
|
|
<!-- Favicon -->
|
|
<link rel="icon" type="image/png" href="{{ url_for('static', filename='img/PacCrypt.png') }}" />
|
|
|
|
<!-- Stylesheets -->
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}" />
|
|
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
|
|
|
|
</head>
|
|
<body class="dark">
|
|
<!-- Header -->
|
|
<!-- Header -->
|
|
<header class="card logo-header">
|
|
<div class="logo-container">
|
|
<img src="{{ url_for('static', filename='img/PacCrypt.png') }}" alt="PacCrypt Logo" />
|
|
<div class="logo-text">
|
|
<h1>PACCRYPT</h1>
|
|
<p>Server Settings</p>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<!-- Main Content -->
|
|
<main>
|
|
<!-- Settings Form Section -->
|
|
<section class="card form-group">
|
|
<h2>Upload Settings</h2>
|
|
|
|
<!-- Flash Messages -->
|
|
{% with messages = get_flashed_messages() %}
|
|
{% if messages %}
|
|
<ul style="color: lime;">
|
|
{% for message in messages %}
|
|
<li>{{ message }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
<!-- Settings Form -->
|
|
<form method="POST">
|
|
<label for="upload_folder">Upload Folder Path:</label>
|
|
<input type="text" name="upload_folder" id="upload_folder" value="{{ settings.upload_folder }}" required />
|
|
|
|
<label for="max_file_age_days">Max File Age (Days):</label>
|
|
<input type="number" name="max_file_age_days" id="max_file_age_days" value="{{ settings.max_file_age_days }}" min="1" required />
|
|
|
|
<label for="max_file_size_gb">Max File Size (GB):</label>
|
|
<input type="number" name="max_file_size_gb" id="max_file_size_gb" value="{{ settings.max_file_size_bytes // (1024 * 1024 * 1024) }}" step="0.1" min="0.1" required />
|
|
|
|
<!-- Action Buttons -->
|
|
<div class="button-group mt-4">
|
|
<button type="submit">Save Settings</button>
|
|
<a href="{{ url_for('admin_page') }}">
|
|
<button type="button">Back to Admin Panel</button>
|
|
</a>
|
|
</div>
|
|
</form>
|
|
</section>
|
|
</main>
|
|
|
|
<!-- Footer -->
|
|
<footer>
|
|
<p>© 2025 UnNaturalll-Dev. All rights reserved.</p>
|
|
<a href="https://github.com/TySP-Dev" target="_blank" id="github-link">
|
|
<img src="\static\img\Github_logo.png" alt="GitHub Logo" width="100" />
|
|
</a>
|
|
</footer>
|
|
</body>
|
|
</html>
|