From 27478208851c561865e995beaad333dd6b3eedfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mirko=20M=C3=A4licke?= Date: Fri, 8 Nov 2024 11:53:26 +0100 Subject: [PATCH] add the map to the entry creation page --- metacatalog_api/core.py | 1 + metacatalog_api/templates/add_entry.html | 26 ++++++++++++++++++++---- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/metacatalog_api/core.py b/metacatalog_api/core.py index eb628dc..797c41f 100644 --- a/metacatalog_api/core.py +++ b/metacatalog_api/core.py @@ -108,6 +108,7 @@ def variables(id: int = None, only_available: bool = False, offset: int = None, return variables + def add_entry(flat_dict: dict) -> Metadata: # get the variable # TODO: put this into the server, as this is due to the FORM. the core package should use the payload model diff --git a/metacatalog_api/templates/add_entry.html b/metacatalog_api/templates/add_entry.html index 89facb8..9c27219 100644 --- a/metacatalog_api/templates/add_entry.html +++ b/metacatalog_api/templates/add_entry.html @@ -33,6 +33,22 @@

Authors

+
+
+

Location

+ + + +
+
+
+
+
+
+
+
+ +

License

@@ -69,10 +85,7 @@

Details

-
- - - +
@@ -81,3 +94,8 @@

Details

+ + + + +