diff --git a/assets/css/src/callout.css b/assets/css/src/callout.css index 34f6b80..7369684 100644 --- a/assets/css/src/callout.css +++ b/assets/css/src/callout.css @@ -7,6 +7,10 @@ section.callout { text-align: center; } +section.callout a { + display: inline-flex; +} + section.callout .ticket-link { margin-top: calc(var(--padding-vertical) / 2); } diff --git a/assets/dist/style.css b/assets/dist/style.css index 4c0902b..108f717 100644 --- a/assets/dist/style.css +++ b/assets/dist/style.css @@ -1227,6 +1227,10 @@ section.callout { text-align: center; } +section.callout a { + display: inline-flex; +} + section.callout .ticket-link { margin-top: calc(var(--padding-vertical) / 2); } diff --git a/site/blueprints/fields/callout.yml b/site/blueprints/fields/callout.yml index bdf08ef..ea5f70c 100644 --- a/site/blueprints/fields/callout.yml +++ b/site/blueprints/fields/callout.yml @@ -16,10 +16,6 @@ fields: extends: fields/color width: 1/2 ticket: - label: Bouton de réservation - type: toggle + label: Lien de réservation + type: url width: 1/3 - help: Affiche le bouton ticket lié à la billetterie. - text: - false: affiché - true: masqué diff --git a/site/snippets/callout.php b/site/snippets/callout.php index 7639561..5b3176d 100644 --- a/site/snippets/callout.php +++ b/site/snippets/callout.php @@ -1,8 +1,8 @@ callout()->toStructure() as $callout): ?>
text() ?> - ticket() == 'true'): ?> - Billetterie + ticket()->isNotEmpty()): ?> + Billetterie
\ No newline at end of file