]> git.plutz.net Git - confetti/blobdiff - ledgers/index.cgi
upload of csv ledgers
[confetti] / ledgers / index.cgi
diff --git a/ledgers/index.cgi b/ledgers/index.cgi
new file mode 100755 (executable)
index 0000000..1313ef8
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+{ printf '
+  [form .upload action="%s/ledgers/csv_upload.sh" method="POST" enctype="multipart/form-data"
+    [label for=ledger_upload . %s:]
+    [input #ledger_upload type="file" name="csv" accept=".csv,text/csv"]
+    [input type=hidden name=session_id value="%s"]
+    [button type="submit" %s]
+  ]' \
+  "${_BASE}" "$(l10n "Postbank CSV")" "$SESSION_ID" "$(l10n Upload)"
+} | yield_page ledgers