overleaf/services/web/app/views/user/confirm_email.pug
Jakob Ackermann 4bdcd520de Merge pull request #6604 from overleaf/msm-jpa-add-go-to-settings-email-confirmation
Added "go to settings" button in email confirmation page

GitOrigin-RevId: 4449f05e9934fdb09ca07804171881b04f3e8bdb
2022-02-16 11:33:34 +00:00

41 lines
1.2 KiB
Text

extends ../layout-marketing
block content
main.content.content-alt#main-content
.container
.row
.col-md-6.col-md-offset-3.col-lg-4.col-lg-offset-4
.card
.page-header
h1 #{translate("confirm_email")}
form(
data-ol-async-form,
data-ol-auto-submit,
name="confirmEmailForm"
action="/user/emails/confirm",
method="POST",
id="confirmEmailForm",
)
input(type="hidden", name="_csrf", value=csrfToken)
input(type="hidden", name="token", value=token)
div(data-ol-not-sent)
+formMessages()
.actions
button.btn-primary.btn.btn-block(
type='submit',
data-ol-disabled-inflight
)
span(data-ol-inflight="idle")
| #{translate('confirm')}
span(hidden data-ol-inflight="pending")
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')}
div.text-center
a.btn.btn-primary(href="/user/settings")
| #{translate('go_to_account_settings')}