diff --git a/package-lock.json b/package-lock.json index 0319e5fb..a2434463 100644 --- a/package-lock.json +++ b/package-lock.json @@ -62,7 +62,7 @@ "vue-template-compiler": "^2.6.14" }, "engines": { - "node": ">=16" + "node": ">=14" } }, "node_modules/@babel/code-frame": { diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/controllers/tabs_controller.js b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/controllers/tabs_controller.js index eaa963bc..8566d7eb 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/controllers/tabs_controller.js +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/controllers/tabs_controller.js @@ -3,9 +3,9 @@ import { useDispatch } from 'stimulus-use' export default class extends Controller { - static classes = [ 'buttonActive' ] + static classes = [ 'button', 'buttonActive' ] - static targets = [ 'tab', 'pulldown', 'label' ] + static targets = [ 'button', 'tab' ] static values = { activeTab: String } @@ -17,14 +17,9 @@ export default class extends Controller { this.activeTabValue = this.tabTargets[0].dataset.tab } - togglePulldown() { - this.pulldownTarget.classList.toggle('hidden') - } - select(e) { let selectedTab = e.currentTarget.dataset.tab this.activeTabValue = selectedTab - this.pulldownTarget.classList.toggle('hidden', true) this.dispatch('selected', selectedTab) } @@ -33,9 +28,11 @@ export default class extends Controller { this.tabTargets.forEach(element => { let currentTab = element.dataset.tab element.classList.toggle('hidden', activeTab !== currentTab) - if (activeTab === currentTab) { - this.labelTarget.innerText = element.dataset.label - } + }) + this.buttonTargets.forEach(element => { + let currentButton = element.dataset.tab + element.classList.toggle(this.buttonClass, activeTab !== currentButton) + element.classList.toggle(this.buttonActiveClass, activeTab === currentButton) }) } } diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/City/Details.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/City/Details.html index 759a0d3c..268abac5 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/City/Details.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/City/Details.html @@ -1,5 +1,5 @@
-
+
@@ -18,7 +18,7 @@ -
+
@@ -35,7 +35,7 @@
-
+
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Hotel/Details.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Hotel/Details.html index e5a3ca0d..5ffcbc6d 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Hotel/Details.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Hotel/Details.html @@ -1,7 +1,7 @@ {namespace ep=EP\EpTheme\ViewHelpers} {hotel.name -> f:format.raw()}{f:if(condition: hotel.categoryLabel, then: ' ({hotel.categoryLabel -> f:format.raw()})')}
-
+
@@ -54,7 +54,7 @@ -
+
@@ -70,7 +70,7 @@ {hotel.features -> f:format.html()}
-
+
@@ -115,7 +115,7 @@
-
+
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Icons.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Icons.html index c55db969..a2b88924 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Icons.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Icons.html @@ -11,6 +11,7 @@ + diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Journey/Details.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Journey/Details.html index 5c7af9d0..7ec9dd98 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Journey/Details.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Journey/Details.html @@ -1,4 +1,4 @@ -
+

Eigenanreise

diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Details.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Details.html index 17933455..ee0937b7 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Details.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Details.html @@ -1,5 +1,5 @@
-
+
Konzept
@@ -13,14 +13,14 @@ Preisberechnung -
+
Verpflegung
{product.boardDescription -> f:format.html()}
-
+
Zusatzleistungen
@@ -28,7 +28,7 @@
-
+
Programm
@@ -36,7 +36,7 @@
-
+
Skipass, Kurse, Leihmaterial
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Region/Details.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Region/Details.html index 6f5965c0..bf2f129d 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Region/Details.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Region/Details.html @@ -1,6 +1,6 @@ {namespace ep=EP\EpTheme\ViewHelpers}
-
+
@@ -92,7 +92,7 @@ -
+
@@ -113,7 +113,7 @@
-
+
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Product/Detail.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Product/Detail.html index 0be83072..cef46a74 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Product/Detail.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Product/Detail.html @@ -18,111 +18,77 @@
-
- - @@ -138,14 +104,7 @@
@@ -163,8 +122,7 @@
+ data-tab="dates">
@@ -205,8 +163,7 @@
+ data-tab="hotel">
@@ -214,8 +171,7 @@ @@ -223,8 +179,7 @@ @@ -233,8 +188,7 @@ @@ -359,4 +313,42 @@ + +
+ + + + + Corona Updates + + + + + +
+
+