From 3d63357534e02da201158ab403ee22cbcf20ba7e Mon Sep 17 00:00:00 2001 From: stefan Date: Sun, 17 Nov 2024 21:44:30 +0100 Subject: [PATCH] made the readme and example for the CSV import accessible from the form directly --- .../static/example/import_csv/import_csv.csv | 0 .../static/example}/import_csv/readme.md | 0 shimatta_kenkyusho/templates/base.html | 5 +++++ .../parts/modals/import-component-modal.html | 16 ++++++++++++++++ 4 files changed, 21 insertions(+) rename examples/import_csv/add_comps.csv => shimatta_kenkyusho/static/example/import_csv/import_csv.csv (100%) rename {examples => shimatta_kenkyusho/static/example}/import_csv/readme.md (100%) diff --git a/examples/import_csv/add_comps.csv b/shimatta_kenkyusho/static/example/import_csv/import_csv.csv similarity index 100% rename from examples/import_csv/add_comps.csv rename to shimatta_kenkyusho/static/example/import_csv/import_csv.csv diff --git a/examples/import_csv/readme.md b/shimatta_kenkyusho/static/example/import_csv/readme.md similarity index 100% rename from examples/import_csv/readme.md rename to shimatta_kenkyusho/static/example/import_csv/readme.md diff --git a/shimatta_kenkyusho/templates/base.html b/shimatta_kenkyusho/templates/base.html index 298c945..f7daf6b 100644 --- a/shimatta_kenkyusho/templates/base.html +++ b/shimatta_kenkyusho/templates/base.html @@ -78,6 +78,11 @@ + + {% block custom_scripts %} {% endblock custom_scripts %} diff --git a/shimatta_kenkyusho/templates/parts/modals/import-component-modal.html b/shimatta_kenkyusho/templates/parts/modals/import-component-modal.html index 9ab72fb..62acb6d 100644 --- a/shimatta_kenkyusho/templates/parts/modals/import-component-modal.html +++ b/shimatta_kenkyusho/templates/parts/modals/import-component-modal.html @@ -6,6 +6,22 @@