1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2025-12-14 18:45:06 +00:00

Add settings restore link

This commit is contained in:
Cadence Ember
2020-06-19 19:12:43 +12:00
parent 21875a8e83
commit 0c16c027e9
4 changed files with 34 additions and 10 deletions

View File

@@ -30,10 +30,10 @@ html
head
title Settings | Bibliogram
include includes/head
script(src=getStaticURL("html", "/static/js/settings_message.js") type="module")
body.settings-page
if status && message
.status-notice(class=status)= message
script(src=getStaticURL("html", "/static/js/settings_message.js") type="module")
main.settings
form(action=returnAction method="post" enctype="application/x-www-form-urlencoded")
input(type="hidden" name="csrf" value=csrf)
@@ -129,6 +129,9 @@ html
label.pill(for=thisID tabindex=0 onkeypress=`[" ", "Enter"].includes(event.key) && this.click()`) Label
span.fake-checkbox
if token
p You can restore and sync saved settings by #[a(href=`/applysettings/${token}`)#restore-link bookmarking this link.]
.action-container
span.home-link-container: a(href=returnURL).home-link ← Return
button(type="submit" formaction=stayAction).save-button Save