2021-09-24 05:22:37 -04:00
|
|
|
mixin formMessages()
|
|
|
|
div(
|
|
|
|
data-ol-form-messages='',
|
|
|
|
role="alert"
|
|
|
|
)
|
|
|
|
|
2024-04-04 11:24:19 -04:00
|
|
|
mixin formMessagesNewStyle()
|
|
|
|
div(
|
|
|
|
data-ol-form-messages-new-style='',
|
|
|
|
role="alert"
|
|
|
|
)
|
|
|
|
|
2021-09-24 05:22:37 -04:00
|
|
|
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
|
2022-12-06 05:22:20 -05:00
|
|
|
|
2024-04-05 08:29:26 -04:00
|
|
|
mixin customFormMessageNewStyle(key, kind)
|
|
|
|
if kind === 'success'
|
|
|
|
div.notification.notification-type-success(
|
|
|
|
hidden,
|
|
|
|
data-ol-custom-form-message=key,
|
|
|
|
role="alert"
|
|
|
|
aria-live="polite"
|
|
|
|
)
|
|
|
|
div.notification-icon
|
|
|
|
span.material-symbols(aria-hidden="true") check_circle
|
|
|
|
div.notification-content.text-left
|
|
|
|
block
|
|
|
|
else if kind === 'danger'
|
|
|
|
div.notification.notification-type-error(
|
|
|
|
hidden,
|
|
|
|
data-ol-custom-form-message=key,
|
|
|
|
role="alert"
|
|
|
|
aria-live="polite"
|
|
|
|
)
|
|
|
|
div.notification-icon
|
|
|
|
span.material-symbols(aria-hidden="true") error
|
|
|
|
div.notification-content.text-left
|
|
|
|
block
|
|
|
|
else
|
|
|
|
div.notification.notification-type-warning(
|
|
|
|
hidden,
|
|
|
|
data-ol-custom-form-message=key,
|
|
|
|
role="alert"
|
|
|
|
aria-live="polite"
|
|
|
|
)
|
|
|
|
div.notification-icon
|
|
|
|
span.material-symbols(aria-hidden="true") warning
|
|
|
|
div.notification-content.text-left
|
|
|
|
block
|
|
|
|
|
2022-12-06 05:22:20 -05:00
|
|
|
mixin customValidationMessage(key)
|
|
|
|
div.invalid-feedback.mt-2(
|
|
|
|
hidden,
|
|
|
|
data-ol-custom-form-message=key
|
|
|
|
)
|
|
|
|
i.fa.fa-fw.fa-warning.me-1(aria-hidden="true")
|
|
|
|
div
|
|
|
|
block
|
2024-04-05 08:29:26 -04:00
|
|
|
|
|
|
|
mixin customValidationMessageNewStyle(key)
|
|
|
|
div.notification.notification-type-error(
|
|
|
|
hidden,
|
|
|
|
data-ol-custom-form-message=key
|
|
|
|
)
|
|
|
|
div.notification-icon
|
|
|
|
span.material-symbols(aria-hidden="true") error
|
|
|
|
div.notification-content.text-left.small
|
|
|
|
block
|