feat: adds flash message
This commit is contained in:
11
app/utils/alert_type.py
Normal file
11
app/utils/alert_type.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from enum import Enum
|
||||
|
||||
class AlertType(Enum):
|
||||
PRIMARY="primary"
|
||||
SECONDARY="secondary"
|
||||
SUCCESS="success"
|
||||
DANGER="danger"
|
||||
WARNING="warning"
|
||||
INFO="info"
|
||||
LIGHT="light"
|
||||
DARK="dark"
|
||||
4
app/utils/flash_message.py
Normal file
4
app/utils/flash_message.py
Normal file
@@ -0,0 +1,4 @@
|
||||
class FlashMessage:
|
||||
def __init__(self, message, alertType):
|
||||
self.message = message
|
||||
self.alertType = alertType
|
||||
Reference in New Issue
Block a user