|
2 | 2 |
|
3 | 3 | __license__ = """ |
4 | 4 | SPDX-FileCopyrightText: 2025 Pierre Francois <https://github.com/Bachibouzouk> © Reiner Lemoine Institut |
5 | | -SPDX-FileCopyrightText: 2025 Pierre Francois <https://github.com/Bachibouzouk> © Reiner Lemoine Institut |
6 | 5 | SPDX-FileCopyrightText: 2025 Christian Winger <https://github.com/wingechr> © Öko-Institut e.V. |
7 | 6 | SPDX-FileCopyrightText: 2025 Daryna Barabanova <https://github.com/Darynarli> © Reiner Lemoine Institut |
8 | 7 | SPDX-FileCopyrightText: 2025 Eike Broda <https://github.com/ebroda> |
9 | 8 | SPDX-FileCopyrightText: 2025 Hendrik Huyskens <https://github.com/henhuy> © Reiner Lemoine Institut |
10 | 9 | SPDX-FileCopyrightText: 2025 Johann Wagner <https://github.com/johannwagner> © Otto-von-Guericke-Universität Magdeburg |
11 | | -SPDX-FileCopyrightText: 2025 Johann Wagner <https://github.com/johannwagner> © Otto-von-Guericke-Universität Magdeburg |
12 | | -SPDX-FileCopyrightText: 2025 Jonas Huber <https://github.com/jh-RLI> © Reiner Lemoine Institut |
13 | 10 | SPDX-FileCopyrightText: 2025 Jonas Huber <https://github.com/jh-RLI> © Reiner Lemoine Institut |
14 | 11 | SPDX-FileCopyrightText: 2025 Kirann Bhavaraju <https://github.com/KirannBhavaraju> © Otto-von-Guericke-Universität Magdeburg |
15 | 12 | SPDX-FileCopyrightText: 2025 Ludwig Hülk <https://github.com/Ludee> © Reiner Lemoine Institut |
16 | 13 | SPDX-FileCopyrightText: 2025 Ludwig Hülk <https://github.com/Ludee> © Reiner Lemoine Institut |
17 | 14 | SPDX-FileCopyrightText: 2025 Martin Glauer <https://github.com/MGlauer> © Otto-von-Guericke-Universität Magdeburg |
18 | | -SPDX-FileCopyrightText: 2025 Martin Glauer <https://github.com/MGlauer> © Otto-von-Guericke-Universität Magdeburg |
19 | | -SPDX-FileCopyrightText: 2025 Martin Glauer <https://github.com/MGlauer> © Otto-von-Guericke-Universität Magdeburg |
20 | | -SPDX-FileCopyrightText: 2025 Martin Glauer <https://github.com/MGlauer> © Otto-von-Guericke-Universität Magdeburg |
21 | 15 | SPDX-FileCopyrightText: 2025 Tom Heimbrodt <https://github.com/tom-heimbrodt> |
22 | 16 | SPDX-FileCopyrightText: 2025 Christian Winger <https://github.com/wingechr> © Öko-Institut e.V. |
23 | 17 | SPDX-FileCopyrightText: 2025 Christian Hofmann <https://github.com/christian-rli> © Reiner Lemoine Institut |
24 | 18 | SPDX-FileCopyrightText: 2025 Daryna Barabanova <https://github.com/Darynarli> © Reiner Lemoine Institut |
25 | | -SPDX-FileCopyrightText: 2025 Jonas Huber <https://github.com/jh-RLI> © Reiner Lemoine Institut |
26 | | -SPDX-FileCopyrightText: 2025 Jonas Huber <https://github.com/jh-RLI> © Reiner Lemoine Institut |
27 | 19 | SPDX-FileCopyrightText: 2025 shara <https://github.com/SharanyaMohan-30> © Otto-von-Guericke-Universität Magdeburg |
28 | 20 | SPDX-FileCopyrightText: 2025 Stephan Uller <https://github.com/steull> © Reiner Lemoine Institut |
29 | 21 | SPDX-FileCopyrightText: 2025 user <https://github.com/Darynarli> © Reiner Lemoine Institut |
@@ -114,7 +106,11 @@ class StandaloneMetaEditView(View): |
114 | 106 | def get(self, request: HttpRequest) -> HttpResponse: |
115 | 107 | context_dict = { |
116 | 108 | "config": json.dumps( |
117 | | - {"cancle_url": get_cancle_state(self.request), "standalone": True} |
| 109 | + { |
| 110 | + "cancle_url": get_cancle_state(self.request), |
| 111 | + "standalone": True, |
| 112 | + "create_url": reverse("oeo_ext:oeo-ext-plugin-ui-create"), |
| 113 | + } |
118 | 114 | ), |
119 | 115 | "oem_key_desc": EXTERNAL_URLS["oemetadata_key_description"], |
120 | 116 | "oemetadata_tutorial": EXTERNAL_URLS["tutorials_oemetadata"], |
@@ -1037,6 +1033,7 @@ def get(self, request: HttpRequest, table: str) -> HttpResponse: |
1037 | 1033 | "api:api_table_meta", |
1038 | 1034 | kwargs={"table": table}, |
1039 | 1035 | ), |
| 1036 | + "create_url": reverse("oeo_ext:oeo-ext-plugin-ui-create"), |
1040 | 1037 | "url_view_table": reverse("dataedit:view", kwargs={"table": table}), |
1041 | 1038 | "cancle_url": get_cancle_state(self.request), |
1042 | 1039 | "standalone": False, |
|
0 commit comments