Skip to content

Commit

Permalink
Moved version to left column
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorgen-5 committed Aug 21, 2024
1 parent 8771f5a commit b91e1b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/datadoc/frontend/fields/display_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,14 @@ class DatasetIdentifiers(str, Enum):
if m.editable and isinstance(m, MetadataMultiLanguageField)
]

EDITABLE_DATASET_METADATA_LEFT.insert(2, DISPLAY_DATASET[DatasetIdentifiers.VERSION])

EDITABLE_DATASET_METADATA_RIGHT = [
m
for m in DISPLAY_DATASET.values()
if m.editable and not isinstance(m, MetadataMultiLanguageField)
if m.editable
and not isinstance(m, MetadataMultiLanguageField)
and m.identifier != DatasetIdentifiers.VERSION
]


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def test_build_dataset_edit_section_renders_ssb_components(
{"type": "dataset-edit-section", "id": "obligatory-en"},
),
(
[[], []],
None,
model.Dataset(short_name="last_dataset"),
{},
),
Expand Down

0 comments on commit b91e1b2

Please sign in to comment.