mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
2675cab92e
[web] Password reset strength checking and UI updates GitOrigin-RevId: 442a5c9e7e9d0a61d3ae649f3526bc3c02fd5704
40 lines
717 B
Text
40 lines
717 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
|
|
|
|
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
|