]> git.plutz.net Git - shellwiki/commitdiff
stub for attachment upload form
authorPaul Hänsch <paul@plutz.net>
Thu, 31 Mar 2022 12:54:42 +0000 (14:54 +0200)
committerPaul Hänsch <paul@plutz.net>
Thu, 31 Mar 2022 12:54:42 +0000 (14:54 +0200)
themes/default.css
themes/default.sh

index 0c5dffb9845e89de48f840636775fafc7c5d9c7b..b5d34f6cc1f4f1ef1460dc5283f845ce28733f1f 100644 (file)
@@ -50,7 +50,9 @@ main .pagemenu li {
 }
 main .pagemenu li a { color: #FFF; }
 
-main article {
+main article,
+[id$="/[attachment]/"] main form.upload,
+[id$="/[attachment]/"] main .attachment.list {
   margin: 1em;
   padding: .125em 1em 1em 1em;
   box-shadow: .25em .25em .75em;
index 6fa6ba16566245e9e7c0b92b883a155bf9ad4a19..1830e26673ccd60c29e95a85f446143cce3dd18c 100755 (executable)
@@ -86,6 +86,11 @@ theme_attachments(){
        </head><body id="$(HTML "$page")[attachment]/">
          $(theme_header)
          <main>
+           <form class=upload method=POST enctype="multipart/form-data">
+             <input type=file name=file multiple>
+             <button type=submit name=action value=upload>Upload</button>
+           </form>
+
             <ul class="attachment list">
            $(for file in "$_EXEC/pages/$page/#attachments"/* "$_DATA/pages/$page/#attachments"/*; do
              [ "$file" = "$_EXEC/pages/$page/#attachments/${file##*/}" \