modified: app.py

modified:   templates/index.html
	modified:   templates/settings.html
This commit is contained in:
SimolZimol
2024-09-03 11:49:52 +02:00
parent 2fc24afcb9
commit e86271ab9a
3 changed files with 33 additions and 31 deletions

View File

@@ -3,9 +3,8 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="{{ url_for('static', filename='css/theme-' + theme + '.css') }}" rel="stylesheet">
<title>Admin Panel</title>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<link href="{{ url_for('static', filename='css/' + theme + '.css') }}" rel="stylesheet">
</head>
<body>
<div class="container mt-5">

View File

@@ -3,7 +3,6 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="{{ url_for('static', filename='css/theme-' + theme + '.css') }}" rel="stylesheet">
<title>Settings</title>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
</head>
@@ -20,12 +19,13 @@
<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>
<div class="form-group">
<label for="theme">Select Theme</label>
<select id="theme" name="theme" class="form-control">
<option value="light" {% if theme == 'light' %}selected{% endif %}>Light Theme</option>
<option value="dark" {% if theme == 'dark' %}selected{% endif %}>Dark Theme</option>
<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>