diff --git a/booth_settings.json b/booth_settings.json new file mode 100644 index 0000000..5915e10 --- /dev/null +++ b/booth_settings.json @@ -0,0 +1,7 @@ +{ + "artist": "Trollgorithm", + "album": null, + "year": null, + "genre": null, + "comment": null +} \ No newline at end of file diff --git a/templates/admin/settings.html b/templates/admin/settings.html index 0122539..ddc68cd 100644 --- a/templates/admin/settings.html +++ b/templates/admin/settings.html @@ -7,239 +7,259 @@
- Dashboard → - Log out +

Admin Settings

+
-

Admin Settings

- {% with messages = get_flashed_messages(with_categories=true) %} - {% for category, message in messages %} -
{{ message }}
- {% endfor %} + {% if messages %} +
+ {% for category, message in messages %} +

{{ message }}

+ {% endfor %} +
+ {% endif %} {% endwith %} - -
-

Database Health

- {% if health.ok %} -

✅ {{ health.message }}

- {% else %} -

❌ {{ health.message }}

- {% if health.missing_columns %} -

Missing columns:

- -
- - -
- {% endif %} - {% endif %} -

DB path: {{ db_path }}

-
+
- -
-

Database Statistics

-
-
-
{{ total_records }}
-
Total requests
-
-
-
{{ db_size }}
-
Database size
-
-
-
{{ upload_file_count }}
-
Uploaded MP3 files
-
-
-
{{ upload_dir_count }}
-
Request upload folders
-
-
-
{{ upload_size }}
-
Total upload size
-
+ +
+

Database Health

+ {% if health.ok %} +

✅ {{ health.message }}

+ {% else %} +

❌ {{ health.message }}

+ {% if health.missing_columns %} +

Missing columns: {{ health.missing_columns | join(', ') }}

+
+ + +
+ {% endif %} + {% endif %}
- {% if status_counts %} -

By Status

-
    - {% for key,count in status_counts.items() %} -
  • {{ statuses[key] }} ({{ key }}): {{ count }}
  • - {% endfor %} -
- {% else %} -

No requests yet.

- {% endif %} -
+ +
+

Database Statistics

+

Total requests: {{ total_records }}

+

Database size: {{ db_size }}

+

Uploaded MP3s: {{ upload_file_count }} files in {{ upload_dir_count }} request folders

+

Uploads total size: {{ upload_size }}

+ {% if status_counts %} +

Status breakdown:

+
    + {% for status, count in status_counts.items() %} +
  • {{ status }}: {{ count }}
  • + {% endfor %} +
+ {% endif %} +

Database path:
{{ db_path }}

+

Uploads path:
{{ upload_path }}

+
- -
-

Paths

-

Database:
{{ db_path }}

-

Uploads:
{{ upload_path }}

-
+ +
+

Revision Limit

+
+ + + +

Set to 0 to disable customer-submitted revisions. Operators can still upload new versions manually.

+ +
+
- -
-

Booth Settings

-
- - - -

Set to 0 to disable customer-submitted revisions. Operators can still upload new versions manually.

- -
-
+ +
+

MP3 Metadata Tags

+

These values are written into every uploaded MP3 file. The song title from the prompt is written to the Title tag automatically. Blank fields are skipped.

+
+ + + + + + + + + + + + + + + + + + + + + + +
Artist
Album
Year
Genre
Comment
+ +
+
- -
-

MP3 Metadata Tags

-

These values are written into every uploaded MP3 file. The song title from the prompt is written to the Title tag automatically.

-
- + +
+

⚠️ Reset System

+

Use this only at the start of a new event. It will delete every request and every uploaded MP3 file. This cannot be undone.

+ + + + +
- - - - - - - - - - - - - - - - - -
- - -
-

⚠️ Reset System

-

Use this only at the start of a new event. It will delete every request and every uploaded MP3 file. This cannot be undone.

-
- - -