From b76fcfd8e471534e3b1d3ca7f85e9e1f2d8ff6f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Phillip=20K=C3=BChne?= Date: Fri, 28 Apr 2023 12:40:28 +0200 Subject: [PATCH] Add Copy functionality and corresponding toasts --- backend/templates/base.html | 24 +++++++++++++----------- backend/templates/main.html | 8 +++++++- backend/templates/main_admin.html | 22 +++++++++++++++++++--- backend/templates/songlist.html | 10 +++++++--- 4 files changed, 46 insertions(+), 18 deletions(-) diff --git a/backend/templates/base.html b/backend/templates/base.html index 54676d3..afd2047 100644 --- a/backend/templates/base.html +++ b/backend/templates/base.html @@ -15,9 +15,12 @@ + + + - + @@ -88,16 +91,12 @@ - + - - + + @@ -105,6 +104,9 @@ + + {% block extrajs %}{% endblock %} {% endblock %} \ No newline at end of file diff --git a/backend/templates/songlist.html b/backend/templates/songlist.html index 7392a81..10df759 100644 --- a/backend/templates/songlist.html +++ b/backend/templates/songlist.html @@ -99,9 +99,13 @@ enqueue(localStorage.getItem("clientId"),id, name, function (response) { console.log(response); entryID = response["entry_id"]; - bootbox.alert({ - message: "Deine Eintragung wurde erfolgreich vorgenommen.", - }); + toast = { + title: "Erfolgreich eingetragen", + message: "Du wurdest erfolgreich eingetragen.", + status: TOAST_STATUS.SUCCESS, + timeout: 5000 + } + Toast.create(toast); console.log("Entry ID: " + entryID); addEntry(entryID); $("#enqueueModal").modal('hide');