overleaf/services/web/app/views/user/logout.pug
Jakob Ackermann 8d03e03d4d Merge pull request #5052 from overleaf/jpa-refactor-form-helper
[web] refactor form helper

GitOrigin-RevId: c04929fd3e62a6222ed335f99e8413592cbdd134
2021-09-17 08:03:05 +00:00

27 lines
852 B
Text

extends ../layout-marketing
block vars
- metadata = { viewport: true }
block content
.content.content-alt
main.login-register-container#main-content
.card.login-register-card
.login-register-header
h1.login-register-header-heading #{translate("log_out")}
form.login-register-form(
data-ol-async-form,
name="logoutForm",
action='/logout',
method="POST"
data-ol-auto-submit
)
input(name='_csrf', type='hidden', value=csrfToken)
div(data-ol-form-messages)
.actions
button#submit-logout.btn-primary.btn.btn-block(
data-ol-disabled-inflight,
type='submit'
)
span(data-ol-inflight="idle" aria-label=translate('log_out')) #{translate('log_out')}
span(hidden data-ol-inflight="pending" aria-label=translate("logging_out")) #{translate('logging_out')}…