Added toasts, fixed some combobox and select issues

This commit is contained in:
Ronan Berder
2025-04-22 13:47:19 +08:00
parent 88af4152ab
commit b3e4085fdb
11 changed files with 469 additions and 414 deletions
+9
View File
@@ -0,0 +1,9 @@
{% from "../../_components/toast.njk" import toaster %}
{% set toasts = [{
category: "error",
message: {
title: "Event has not been created",
cancel: { label: "Dismiss", click: "close()" }
}
}] %}
{{ toaster(toasts=toasts, is_fragment=true) }}
+8
View File
@@ -0,0 +1,8 @@
{% from "../../_components/toast.njk" import toaster %}
{% set toasts = [{
category: "info",
message: {
title: "Be at the area 10 minutes before the event time"
}
}] %}
{{ toaster(toasts=toasts, is_fragment=true) }}
+9
View File
@@ -0,0 +1,9 @@
{% from "../../_components/toast.njk" import toaster %}
{% set toasts = [{
message: {
title: "Event has been created",
description: "Sunday, December 03, 2023 at 9:00 AM",
cancel: { label: "Undo", click: "close()" }
}
}] %}
{{ toaster(toasts=toasts, is_fragment=true) }}
+8
View File
@@ -0,0 +1,8 @@
{% from "../../_components/toast.njk" import toaster %}
{% set toasts = [{
category: "warning",
message: {
title: "Event start time cannot be earlier than 8am"
}
}] %}
{{ toaster(toasts=toasts, is_fragment=true) }}