Files
Discord-ai-chatbot/templates/settings.html
SimolZimol e86271ab9a modified: app.py
modified:   templates/index.html
	modified:   templates/settings.html
2024-09-03 11:49:52 +02:00

41 lines
2.1 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 href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container mt-5">
<h1 class="text-center">Bot Settings</h1>
<div class="card mt-4">
<div class="card-body">
<form method="POST" action="{{ url_for('settings') }}">
<div class="form-group">
<label for="introduction">Introduction Text</label>
<textarea id="introduction" name="introduction" class="form-control" rows="5">{{ introduction }}</textarea>
</div>
<div class="form-group">
<label for="asknotes_introduction">Asknotes Introduction Text</label>
<textarea id="asknotes_introduction" name="asknotes_introduction" class="form-control" rows="5">{{ asknotes_introduction }}</textarea>
</div>
<div class="form-group">
<label for="theme">Select Theme</label>
<select id="theme" name="theme" class="form-control">
<option value="light" {% if current_theme == "light" %}selected{% endif %}>Light</option>
<option value="dark" {% if current_theme == "dark" %}selected{% endif %}>Dark</option>
<option value="blue" {% if current_theme == "blue" %}selected{% endif %}>Blue</option>
</select>
</div>
<button type="submit" class="btn btn-primary btn-block">Save Settings</button>
</form>
<a href="{{ url_for('index') }}" class="btn btn-secondary btn-block mt-3">Back to Dashboard</a>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.2/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>