2021-09-16 04:14:41 -04:00
|
|
|
extends ../layout-marketing
|
2018-06-19 08:55:34 -04:00
|
|
|
|
|
|
|
block content
|
2021-07-27 09:23:05 -04:00
|
|
|
main.content.content-alt#main-content
|
2018-06-19 08:55:34 -04:00
|
|
|
.container
|
|
|
|
.row
|
2024-03-21 06:38:26 -04:00
|
|
|
.col-md-8.col-md-offset-2.col-lg-6.col-lg-offset-3
|
2018-06-19 08:55:34 -04:00
|
|
|
.card
|
2024-03-21 06:38:26 -04:00
|
|
|
.page-header(data-ol-hide-on-error-message="confirm-email-wrong-user")
|
2018-06-19 08:55:34 -04:00
|
|
|
h1 #{translate("confirm_email")}
|
2024-03-21 06:38:26 -04:00
|
|
|
form(
|
|
|
|
method="POST"
|
|
|
|
action="/logout"
|
|
|
|
id="logoutForm"
|
|
|
|
)
|
|
|
|
input(type="hidden", name="_csrf", value=csrfToken)
|
|
|
|
input(type="hidden", name="redirect", value=currentUrlWithQueryParams)
|
2018-06-19 08:55:34 -04:00
|
|
|
form(
|
2021-09-16 04:45:19 -04:00
|
|
|
data-ol-async-form,
|
2021-09-16 04:14:41 -04:00
|
|
|
data-ol-auto-submit,
|
2018-06-19 08:55:34 -04:00
|
|
|
name="confirmEmailForm"
|
|
|
|
action="/user/emails/confirm",
|
|
|
|
method="POST",
|
|
|
|
id="confirmEmailForm",
|
|
|
|
)
|
|
|
|
input(type="hidden", name="_csrf", value=csrfToken)
|
2021-09-16 04:14:41 -04:00
|
|
|
input(type="hidden", name="token", value=token)
|
|
|
|
|
|
|
|
div(data-ol-not-sent)
|
2021-09-24 05:22:37 -04:00
|
|
|
+formMessages()
|
2024-03-21 06:38:26 -04:00
|
|
|
div(data-ol-custom-form-message="confirm-email-wrong-user" hidden)
|
|
|
|
h1.h3 #{translate("we_cant_confirm_this_email")}
|
|
|
|
p !{translate("to_confirm_email_address_you_must_be_logged_in_with_the_requesting_account")}
|
|
|
|
p !{translate("you_are_currently_logged_in_as", {email: getUserEmail()})}
|
|
|
|
.actions
|
|
|
|
button.btn-primary.btn.btn-block(
|
|
|
|
form="logoutForm"
|
|
|
|
) #{translate('log_in_with_a_different_account')}
|
2021-09-16 04:14:41 -04:00
|
|
|
|
|
|
|
.actions
|
|
|
|
button.btn-primary.btn.btn-block(
|
|
|
|
type='submit',
|
|
|
|
data-ol-disabled-inflight
|
2024-03-21 06:38:26 -04:00
|
|
|
data-ol-hide-on-error-message="confirm-email-wrong-user"
|
2021-09-16 04:14:41 -04:00
|
|
|
)
|
2021-09-16 04:45:19 -04:00
|
|
|
span(data-ol-inflight="idle")
|
2021-09-16 04:14:41 -04:00
|
|
|
| #{translate('confirm')}
|
2021-09-16 04:45:19 -04:00
|
|
|
span(hidden data-ol-inflight="pending")
|
2021-09-16 04:14:41 -04:00
|
|
|
i.fa.fa-fw.fa-spin.fa-spinner(aria-hidden="true")
|
|
|
|
| #{translate('confirming')}…
|
|
|
|
|
|
|
|
div(hidden data-ol-sent)
|
|
|
|
.alert.alert-success
|
|
|
|
| #{translate('thank_you_email_confirmed')}
|
2022-02-09 07:43:01 -05:00
|
|
|
div.text-center
|
|
|
|
a.btn.btn-primary(href="/user/settings")
|
|
|
|
| #{translate('go_to_account_settings')}
|