]> git.plutz.net Git - shellwiki/commitdiff
translated "page name" field and autocomplete=off in newpage macro
authorPaul Hänsch <paul@plutz.net>
Wed, 23 Aug 2023 09:29:31 +0000 (11:29 +0200)
committerPaul Hänsch <paul@plutz.net>
Wed, 23 Aug 2023 09:29:31 +0000 (11:29 +0200)
macros/newpage

index 2502b00d285e64acb1ba138c1e7a6e425e95e7eb..dfb1e397a9d3b7233d833a8c222c25b67e8c6565 100755 (executable)
@@ -22,7 +22,7 @@ if acl_write "$(page_abs "$pattern")"; then
          <input type=hidden name=pattern value="$(HTML "$pattern")">
          <input type=hidden name=template value="$(HTML "$template")">
          $([ ! "${pattern##*%%s*}" ] \
-           && printf '<input name=page placeholder="page name">'
+           && printf '<input autocomplete=off name=page placeholder="%s">' "$(_ "page name")"
          )<button type=submit name=action value=newpage>$(HTML "$label")</button>
        </form>
        EOF