Add new hotel category
This commit is contained in:
@@ -34,6 +34,7 @@ class Hotel extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity implements Te
|
||||
const CATEGORY_COMFORT = 2;
|
||||
const CATEGORY_DELUXE = 3;
|
||||
const CATEGORY_SUPER_DELUXE = 4;
|
||||
const CATEGORY_BASIC = 5;
|
||||
|
||||
const TYPE_HOLIDAY_FLAT = 1;
|
||||
const TYPE_SPORTS_CLUB = 2;
|
||||
|
||||
@@ -155,6 +155,10 @@
|
||||
<numIndex index="0">Standard</numIndex>
|
||||
<numIndex index="1">1</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="1" type="array">
|
||||
<numIndex index="0">Basic</numIndex>
|
||||
<numIndex index="1">5</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="2" type="array">
|
||||
<numIndex index="0">Komfort</numIndex>
|
||||
<numIndex index="1">2</numIndex>
|
||||
|
||||
+4
@@ -114,6 +114,10 @@
|
||||
<numIndex index="0">Standard</numIndex>
|
||||
<numIndex index="1">1</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="1" type="array">
|
||||
<numIndex index="0">Basic</numIndex>
|
||||
<numIndex index="1">5</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="2" type="array">
|
||||
<numIndex index="0">Komfort</numIndex>
|
||||
<numIndex index="1">2</numIndex>
|
||||
|
||||
@@ -440,6 +440,7 @@ return [
|
||||
'items' => [
|
||||
['Unbestimmt', 0],
|
||||
['Standard', \EP\EpProducts\Domain\Model\Hotel::CATEGORY_STANDARD],
|
||||
['Basic', \EP\EpProducts\Domain\Model\Hotel::CATEGORY_BASIC],
|
||||
['Komfort', \EP\EpProducts\Domain\Model\Hotel::CATEGORY_COMFORT],
|
||||
['Deluxe', \EP\EpProducts\Domain\Model\Hotel::CATEGORY_DELUXE],
|
||||
['Super Deluxe', \EP\EpProducts\Domain\Model\Hotel::CATEGORY_SUPER_DELUXE],
|
||||
|
||||
@@ -48,6 +48,10 @@ class ComfortCategoryViewHelper extends AbstractViewHelper
|
||||
$icon = 'S';
|
||||
$tooltip = 'Kategorie: Standard';
|
||||
break;
|
||||
case Hotel::CATEGORY_BASIC:
|
||||
$icon = 'B';
|
||||
$tooltip = 'Kategorie: Basic';
|
||||
break;
|
||||
case Hotel::CATEGORY_COMFORT:
|
||||
$icon = 'C';
|
||||
$tooltip = 'Kategorie: Komfort';
|
||||
|
||||
Reference in New Issue
Block a user