diff --git a/src/datadoc/frontend/components/dataset_tab.py b/src/datadoc/frontend/components/dataset_tab.py index fbbe41b8..51952f2b 100644 --- a/src/datadoc/frontend/components/dataset_tab.py +++ b/src/datadoc/frontend/components/dataset_tab.py @@ -3,6 +3,7 @@ from __future__ import annotations import dash_bootstrap_components as dbc +import ssb_dash_components as ssb from dash import html from datadoc.frontend.components.builders import build_ssb_styled_tab @@ -12,6 +13,7 @@ from datadoc.frontend.fields.display_dataset import DisplayDatasetMetadata DATASET_METADATA_INPUT = "dataset-metadata-input" +SECTION_WRAPPER_ID = "section-wrapper-id" def build_dataset_metadata_accordion_item( @@ -89,3 +91,29 @@ def build_dataset_tab() -> dbc.Tab: ], ), ) + + +def build_new_dataset_tab() -> dbc.Tab: + """Build the Dataset metadata tab.""" + return build_ssb_styled_tab( + "Datasett", + html.Article( + [ + html.Header( + [ + ssb.Title( + "Datasett detaljer", + size=2, + className="dataset-title", + ), + ], + className="dataset-header", + ), + html.Article( + id=SECTION_WRAPPER_ID, + className="main-content", + ), + ], + className="dataset-page-wrapper", + ), + )