mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
32 lines
542 B
Text
32 lines
542 B
Text
|
mixin formMessages()
|
||
|
div(
|
||
|
data-ol-form-messages='',
|
||
|
role="alert"
|
||
|
)
|
||
|
|
||
|
mixin customFormMessage(key, kind)
|
||
|
if kind === 'success'
|
||
|
div.alert.alert-success(
|
||
|
hidden,
|
||
|
data-ol-custom-form-message=key,
|
||
|
role="alert"
|
||
|
aria-live="polite"
|
||
|
)
|
||
|
block
|
||
|
else if kind === 'danger'
|
||
|
div.alert.alert-danger(
|
||
|
hidden,
|
||
|
data-ol-custom-form-message=key,
|
||
|
role="alert"
|
||
|
aria-live="assertive"
|
||
|
)
|
||
|
block
|
||
|
else
|
||
|
div.alert.alert-warning(
|
||
|
hidden,
|
||
|
data-ol-custom-form-message=key,
|
||
|
role="alert"
|
||
|
aria-live="polite"
|
||
|
)
|
||
|
block
|