feat: additional text field in travel info
This commit is contained in:
@@ -39,6 +39,11 @@ class Travelinfo extends AbstractEntity
|
|||||||
*/
|
*/
|
||||||
protected $introText;
|
protected $introText;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $busInfoText;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
@@ -176,6 +181,18 @@ class Travelinfo extends AbstractEntity
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getBusInfoText()
|
||||||
|
{
|
||||||
|
return $this->busInfoText;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setBusInfoText($busInfoText)
|
||||||
|
{
|
||||||
|
$this->busInfoText = $busInfoText;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
public function getFooterText()
|
public function getFooterText()
|
||||||
{
|
{
|
||||||
return $this->footerText;
|
return $this->footerText;
|
||||||
|
|||||||
+14
-3
@@ -29,9 +29,9 @@ return [
|
|||||||
'palettes' => [
|
'palettes' => [
|
||||||
'basics' => ['showitem' => 'title,path_segment,--linebreak--,product,hide_address,--linebreak--,links,
|
'basics' => ['showitem' => 'title,path_segment,--linebreak--,product,hide_address,--linebreak--,links,
|
||||||
--linebreak--,teasers'],
|
--linebreak--,teasers'],
|
||||||
'text' => ['showitem' => 'subline,headline,--linebreak--,intro_text,--linebreak--,footer_text,--linebreak--,
|
'text' => ['showitem' => 'subline,headline,--linebreak--,intro_text,--linebreak--, bus_info_text,--linebreak--,
|
||||||
self_arranged_text,--linebreak--,additional_info,--linebreak--,important_phone_numbers,--linebreak--,
|
footer_text,--linebreak--,self_arranged_text,--linebreak--,additional_info,
|
||||||
important_links'],
|
--linebreak--,important_phone_numbers,--linebreak--,important_links'],
|
||||||
'images' => ['showitem' => 'header_image,--linebreak--,footer_image'],
|
'images' => ['showitem' => 'header_image,--linebreak--,footer_image'],
|
||||||
],
|
],
|
||||||
'columns' => [
|
'columns' => [
|
||||||
@@ -237,6 +237,17 @@ return [
|
|||||||
'enableRichtext' => true,
|
'enableRichtext' => true,
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
'bus_info_text' => [
|
||||||
|
'exclude' => false,
|
||||||
|
'label' => 'Businfo',
|
||||||
|
'config' => [
|
||||||
|
'type' => 'text',
|
||||||
|
'cols' => 40,
|
||||||
|
'rows' => 3,
|
||||||
|
'eval' => 'trim',
|
||||||
|
'enableRichtext' => true,
|
||||||
|
]
|
||||||
|
],
|
||||||
'footer_text' => [
|
'footer_text' => [
|
||||||
'exclude' => false,
|
'exclude' => false,
|
||||||
'label' => 'Footertext',
|
'label' => 'Footertext',
|
||||||
|
|||||||
@@ -1367,6 +1367,7 @@ CREATE TABLE tx_epproducts_domain_model_travelinfo
|
|||||||
headline varchar(255) DEFAULT '' NOT NULL,
|
headline varchar(255) DEFAULT '' NOT NULL,
|
||||||
subline varchar(255) DEFAULT '' NOT NULL,
|
subline varchar(255) DEFAULT '' NOT NULL,
|
||||||
intro_text text DEFAULT '0' NOT NULL,
|
intro_text text DEFAULT '0' NOT NULL,
|
||||||
|
bus_info_text text DEFAULT '0' NOT NULL,
|
||||||
footer_text text DEFAULT '0' NOT NULL,
|
footer_text text DEFAULT '0' NOT NULL,
|
||||||
self_arranged_text text DEFAULT '0' NOT NULL,
|
self_arranged_text text DEFAULT '0' NOT NULL,
|
||||||
additional_info text DEFAULT '0' NOT NULL,
|
additional_info text DEFAULT '0' NOT NULL,
|
||||||
|
|||||||
@@ -257,6 +257,7 @@
|
|||||||
<p>
|
<p>
|
||||||
Bitte findet euch mindestens <strong>20 Minuten vor Abfahrt</strong> an der gebuchten Haltestelle ein.
|
Bitte findet euch mindestens <strong>20 Minuten vor Abfahrt</strong> an der gebuchten Haltestelle ein.
|
||||||
</p>
|
</p>
|
||||||
|
{travelinfo.busInfoText -> f:format.html()}
|
||||||
<table class="w-full bg-zinc-200 text-zinc-800 text-xs md:text-base mb-4">
|
<table class="w-full bg-zinc-200 text-zinc-800 text-xs md:text-base mb-4">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="border-r border-white/50 px-2 py-1 md:p-2 text-left text-sm md:text-base">
|
<th class="border-r border-white/50 px-2 py-1 md:p-2 text-left text-sm md:text-base">
|
||||||
|
|||||||
Reference in New Issue
Block a user