diff --git a/views/shared/exhibit_layouts/geolocation-map/form.php b/views/shared/exhibit_layouts/geolocation-map/form.php index c62defb..aea3251 100644 --- a/views/shared/exhibit_layouts/geolocation-map/form.php +++ b/views/shared/exhibit_layouts/geolocation-map/form.php @@ -1,4 +1,22 @@ +getFormStem(); +$options = $block->getOptions(); +?>

exhibitFormAttachments($block); ?>
+ +
+
+

+ +
+
+
+ formLabel($formStem . '[options][sequence]', __('Sequence mode')); ?> + formCheckbox($formStem . '[options][sequence]', @$options['sequence'], [], ['1', '0']); ?> +

+
+
+
diff --git a/views/shared/exhibit_layouts/geolocation-map/layout.css b/views/shared/exhibit_layouts/geolocation-map/layout.css index daf8e0d..6c3a249 100644 --- a/views/shared/exhibit_layouts/geolocation-map/layout.css +++ b/views/shared/exhibit_layouts/geolocation-map/layout.css @@ -2,3 +2,20 @@ width: 100%; height: 450px; } + +.layout-geolocation-map .geolocation-sequence-nav { + display: flex; + align-items: center; + gap: 0.5em; + margin-bottom: 0.5em; +} + +.layout-geolocation-map .geolocation-sequence-counter { + min-width: 4em; + text-align: center; +} + +.layout-geolocation-map .geolocation-sequence-nav button:disabled { + opacity: 0.4; + cursor: not-allowed; +} diff --git a/views/shared/exhibit_layouts/geolocation-map/layout.php b/views/shared/exhibit_layouts/geolocation-map/layout.php index 15be75f..198fe63 100644 --- a/views/shared/exhibit_layouts/geolocation-map/layout.php +++ b/views/shared/exhibit_layouts/geolocation-map/layout.php @@ -33,6 +33,7 @@ ]; endforeach; endforeach; +$sequenceMode = !empty($options['sequence']) && count($locations) > 0; ?> + +
+ + 1 / + +
+