Skip to content

[Feature]: Auto-display “Tilmelding”/"Ansøgning" button when Pretix is configured #102

Description

@MIF-OS2udoglaer

Background

Currently, the “Tilmelding”/"Ansøgning" button shown at the top of the content types “Undervisnings- og læringsforløb”, “Kurser”, "Erhvervspraktik" and "Juniormesterlære" only appears in the frontend if there is content in the field group “Tilmelding”/"Ansøgning". This leads to a workaround where editors must enter dummy content just to trigger the button.

We want to decouple the visibility of the button from the presence of content in the “Tilmelding”/"Ansøgning" field group. Instead, the button should be displayed automatically when Pretix is configured for the given content.

This ensures a more robust and semantically correct setup, where the button reflects actual registration availability rather than placeholder content.

Acceptance Criteria

The “Tilmelding”/"Ansøgning" button is displayed in the frontend for:

“Undervisnings- og læringsforløb”
“Kurser”
"Erhvervspraktik"
"Juniormesterlære"

when Pretix is configured for the specific item.

  • The button visibility is not dependent on any content being present in the “Tilmelding”/"Ansøgning" field group.
  • If Pretix is configured, the “Tilmelding”/"Ansøgning" button must be displayed.
  • The solution must work consistently across all relevant display modes/templates used for these content types.

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions