]> git.plutz.net Git - webpoll/commitdiff
use <main> section in addition to <form>
authorPaul Hänsch <paul@plutz.net>
Thu, 26 Aug 2021 14:51:32 +0000 (16:51 +0200)
committerPaul Hänsch <paul@plutz.net>
Thu, 26 Aug 2021 14:51:32 +0000 (16:51 +0200)
newdate.sh

index 540f03fe980c49de420d1120cbbc861fb2750bb9..d909cbdd23c7edec8feb0ad4959b4fa16ab136a3 100755 (executable)
@@ -156,7 +156,7 @@ else
 
   yield_page "$(pagename "$id")" "newdate" <<-EOF
        $(dlist_timeofday)
-       [form method=post
+       [main [form method=post
          [input name=title value="$(DBM "$file" get title |HTML)" placeholder="Title"]
          [textarea name=description placeholder="Description" . $(DBM "$file" get description |HTML)]
          $(if [ "$bookmarks" ]; then
@@ -182,6 +182,6 @@ else
          else
            printf '[submit "delete" "delete" Cancel] [submit "post" "post" Post Event]'
          fi)
-       ]
+       ]]
        EOF
 fi