Merge pull request #5260 from overleaf/jpa-de-ng-simple-pages

[web] de-ng simple pages

GitOrigin-RevId: d5e2f05780e7f91bea1a037022a3c8a0c276f6e6
This commit is contained in:
Jakob Ackermann 2021-09-29 11:04:45 +02:00 committed by Copybot
parent 471bc70463
commit 5fc79f6fd4
5 changed files with 41 additions and 21 deletions

View file

@ -1,4 +1,4 @@
extends ../layout extends ../layout-marketing
block content block content
main.content.content-alt#main-content main.content.content-alt#main-content
@ -29,7 +29,12 @@ block content
.row.text-centered .row.text-centered
.col-md-12 .col-md-12
if user.betaProgram if user.betaProgram
form(id="beta-program-opt-out", method="post", action="/beta/opt-out", novalidate) form(
data-ol-regular-form
method="post"
action="/beta/opt-out"
novalidate
)
input(type="hidden", name="_csrf", value=csrfToken) input(type="hidden", name="_csrf", value=csrfToken)
.form-group .form-group
a( a(
@ -40,17 +45,25 @@ block content
.form-group .form-group
button.btn.btn-info.btn-sm( button.btn.btn-info.btn-sm(
type="submit" type="submit"
data-ol-disabled-inflight
) )
span #{translate("beta_program_opt_out_action")} span(data-ol-inflight="idle") #{translate("beta_program_opt_out_action")}
span(hidden data-ol-inflight="pending") #{translate("processing")}…
.form-group .form-group
a(href="/project").btn.btn-link.btn-sm #{translate("back_to_your_projects")} a(href="/project").btn.btn-link.btn-sm #{translate("back_to_your_projects")}
else else
form(id="beta-program-opt-in", method="post", action="/beta/opt-in", novalidate) form(
data-ol-regular-form
method="post",
action="/beta/opt-in"
)
input(type="hidden", name="_csrf", value=csrfToken) input(type="hidden", name="_csrf", value=csrfToken)
.form-group .form-group
button.btn.btn-primary( button.btn.btn-primary(
type="submit" type="submit"
data-ol-disabled-inflight
) )
span #{translate("beta_program_opt_in_action")} span(data-ol-inflight="idle") #{translate("beta_program_opt_in_action")}
span(hidden data-ol-inflight="pending") #{translate("joining")}…
.form-group .form-group
a(href="/project").btn.btn-link.btn-sm #{translate("back_to_your_projects")} a(href="/project").btn.btn-link.btn-sm #{translate("back_to_your_projects")}

View file

@ -1,4 +1,4 @@
extends ../../layout extends ../../layout-marketing
block content block content
.editor.full-size .editor.full-size
@ -13,7 +13,12 @@ block content
span.loading-screen-ellip . span.loading-screen-ellip .
span.loading-screen-ellip . span.loading-screen-ellip .
form(id='create_form' method='POST' action='/project/new/template/' ng-non-bindable) form(
data-ol-regular-form
data-ol-auto-submit
method='POST'
action='/project/new/template/'
)
input(type="hidden", name="_csrf", value=csrfToken) input(type="hidden", name="_csrf", value=csrfToken)
input(type="hidden" name="templateId" value=templateId) input(type="hidden" name="templateId" value=templateId)
input(type="hidden" name="templateVersionId" value=templateVersionId) input(type="hidden" name="templateVersionId" value=templateVersionId)
@ -23,9 +28,4 @@ block content
input(type="hidden" name="mainFile" value=mainFile) input(type="hidden" name="mainFile" value=mainFile)
if brandVariationId if brandVariationId
input(type="hidden" name="brandVariationId" value=brandVariationId) input(type="hidden" name="brandVariationId" value=brandVariationId)
input(hidden type="submit")
block append foot-scripts
script(type="text/javascript", nonce=scriptNonce).
$(document).ready(function(){
$('#create_form').submit();
});

View file

@ -1,4 +1,4 @@
extends ../../layout extends ../../layout-marketing
block content block content
main.content.content-alt#main-content main.content.content-alt#main-content

View file

@ -1,4 +1,4 @@
extends ../../layout extends ../../layout-marketing
block content block content
main.content.content-alt#main-content main.content.content-alt#main-content
@ -18,13 +18,17 @@ block content
.row .row
.col-md-12 .col-md-12
form.form( form.form(
name="acceptForm", data-ol-regular-form
method="POST", method="POST",
action="/project/"+invite.projectId+"/invite/token/"+invite.token+"/accept" action="/project/"+invite.projectId+"/invite/token/"+invite.token+"/accept"
) )
input(name='_csrf', type='hidden', value=csrfToken) input(name='_csrf', type='hidden', value=csrfToken)
input(name='token', type='hidden', value=invite.token) input(name='token', type='hidden', value=invite.token)
.form-group.text-center .form-group.text-center
button.btn.btn-lg.btn-primary(type="submit") button.btn.btn-lg.btn-primary(
| #{translate("join_project")} type="submit"
data-ol-disabled-inflight
)
span(data-ol-inflight="idle") #{translate("join_project")}
span(hidden data-ol-inflight="pending") #{translate("joining")}…
.form-group.text-center .form-group.text-center

View file

@ -1,4 +1,4 @@
extends ../layout extends ../layout-marketing
block content block content
main.content.content-alt#main-content main.content.content-alt#main-content
@ -7,7 +7,7 @@ block content
.col-md-10.col-md-offset-1 .col-md-10.col-md-offset-1
h3(ng-non-bindable) #{entityName} "#{entityId}" does not exists in v2 h3(ng-non-bindable) #{entityName} "#{entityId}" does not exists in v2
form( form(
enctype='application/json', data-ol-regular-form
method='post', method='post',
action='' action=''
) )
@ -15,4 +15,7 @@ block content
button.btn.btn-primary.text-capitalize( button.btn.btn-primary.text-capitalize(
type="submit", type="submit",
ng-non-bindable ng-non-bindable
) Create #{entityName} in v2 data-ol-disabled-inflight
)
span(data-ol-inflight="idle") Create #{entityName} in v2
span(hidden data-ol-inflight="pending") #{translate("creating")}…