diff --git a/public/typo3conf/ext/ep_products/Classes/Controller/TravelinfoController.php b/public/typo3conf/ext/ep_products/Classes/Controller/TravelinfoController.php index 2819ac8b..7dd25492 100644 --- a/public/typo3conf/ext/ep_products/Classes/Controller/TravelinfoController.php +++ b/public/typo3conf/ext/ep_products/Classes/Controller/TravelinfoController.php @@ -65,10 +65,8 @@ class TravelinfoController extends ActionController /** @var Date $date */ $date = $this->dateRepository->findForProductAndDate($product, $travelDate)->getFirst(); - $hasCourses = null !== $date && 0 < count($date->getServicesGeneral('KUR')); $this->view->assign('travelinfo', $travelinfo); $this->view->assign('date', $date); - $this->view->assign('hasCourses', $hasCourses); } } diff --git a/public/typo3conf/ext/ep_products/Classes/Domain/Model/Date.php b/public/typo3conf/ext/ep_products/Classes/Domain/Model/Date.php index f3198055..40b3115d 100644 --- a/public/typo3conf/ext/ep_products/Classes/Domain/Model/Date.php +++ b/public/typo3conf/ext/ep_products/Classes/Domain/Model/Date.php @@ -496,6 +496,11 @@ class Date extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity $this->coursesIncluded = $coursesIncluded; } + public function getActiveCoursesForTravelinfo() + { + return $this->getServicesGeneral('KUR'); + } + public function getGuide() { return unserialize($this->guide); diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Travelinfo/Index.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Travelinfo/Index.html index 65c301f1..5d8b8a22 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Travelinfo/Index.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Travelinfo/Index.html @@ -117,16 +117,7 @@
- - - - - - - - - - +
@@ -208,11 +199,32 @@ {teaser.title} - +

{date.board}

+ + + +

+ Es finden folgende Kurse statt: +

+
    + +
  • + {course.label} +
  • +
    +
+
+ +

+ Es finden keine Kurse über E&P Reisen statt. +

+
+
+
{teaser.bodytext -> f:format.html()}