Background
If "Ingen adresse/Vis ikke på kort" is selected in the "Lokation" field group, the frontend only displays "Ikke angivet" (see screenshot), and the user is required to click "Se flere detaljer" to view additional information.
If there is content in the free text field "Sted", the collapsible should automatically be removed and content should be shown as "ordinary" content.
We also want to be able to control this manually using the “Vis altid”-feature button in edge cases.
Acceptance Criteria
Applies to the following content types:
- Undervisnings- og læringsforløb
- Kursus
- Erhvervspraktik
- Juniormesterlære
- If the field "Visning på kort" has the value "Ingen adresse/Vis ikke på kort":
- The content from the field "Sted" must be displayed directly in the frontend
- The collapsible functionality "Se flere detaljer" must be open by default
- The text "ikke angivet" should not be displayed
- If the field "Visning på kort" has other values than "Ingen adresse/Vis ikke på kort":
Backend
- Editors with the role “udbyder”/"virksomhed" or higher can enable a toggle or checkbox named “Vis altid” on the field: "Sted"
- The state of the toggle is saved and exposed to the frontend.
Frontend
When “Vis altid” is enabled:
- The content in "Sted" is expanded by default.
- The user has the option to collapse the content.
When “Vis altid” is not enabled:
The field remains collapsed by default.
Assumptions / Prerequisites
No response
Implementation Breakdown
No response
Test Description
No response
Risks and Risk Assessment
No response
Not included
No response
Design
No response
Data foundation
No response
Notes
No response
Background
If "Ingen adresse/Vis ikke på kort" is selected in the "Lokation" field group, the frontend only displays "Ikke angivet" (see screenshot), and the user is required to click "Se flere detaljer" to view additional information.
If there is content in the free text field "Sted", the collapsible should automatically be removed and content should be shown as "ordinary" content.
We also want to be able to control this manually using the “Vis altid”-feature button in edge cases.
Acceptance Criteria
Applies to the following content types:
Backend
Frontend
When “Vis altid” is enabled:
When “Vis altid” is not enabled:
The field remains collapsed by default.
Assumptions / Prerequisites
No response
Implementation Breakdown
No response
Test Description
No response
Risks and Risk Assessment
No response
Not included
No response
Design
No response
Data foundation
No response
Notes
No response