Skip to content

[Feature]: Changes to the collapsible in FE for the field "Sted" (UOLOS2-889) #96

@MIF-OS2udoglaer

Description

@MIF-OS2udoglaer

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.

Image

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
  1. 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
  1. 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

Metadata

Metadata

Assignees

No one assigned
    No fields configured for Feature.

    Projects

    Status

    Refinement

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions