mirror of
https://github.com/werkraum-media/events.git
synced 2024-12-22 17:46:09 +01:00
Allow to add link for canceled dates
E.g. allow users to get info about refunds. Relates: #8574
This commit is contained in:
parent
bfaa25c707
commit
cbbe56775e
5 changed files with 42 additions and 1 deletions
|
@ -35,6 +35,11 @@ class Date extends AbstractEntity
|
|||
*/
|
||||
protected $event = null;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $canceledLink = '';
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
@ -135,4 +140,13 @@ class Date extends AbstractEntity
|
|||
|
||||
return null;
|
||||
}
|
||||
|
||||
public function getCanceledLink(): string
|
||||
{
|
||||
if ($this->getCanceled() === 'canceled') {
|
||||
return $this->canceledLink;
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ return [
|
|||
'iconfile' => 'EXT:events/Resources/Public/Icons/tx_events_domain_model_date.svg'
|
||||
],
|
||||
'types' => [
|
||||
'1' => ['showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, start, end, canceled, postponed_date, event, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'],
|
||||
'1' => ['showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, start, end, canceled, postponed_date, canceled_link, event, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'],
|
||||
],
|
||||
'columns' => [
|
||||
'sys_language_uid' => [
|
||||
|
@ -180,6 +180,25 @@ return [
|
|||
],
|
||||
],
|
||||
],
|
||||
'canceled_link' => [
|
||||
'exclude' => true,
|
||||
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_date.xlf:tx_events_domain_model_date.canceled_link',
|
||||
'displayCond' => 'FIELD:canceled:=:canceled',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'softref' => 'typolink',
|
||||
'renderType' => 'inputLink',
|
||||
'max' => 1024,
|
||||
'eval' => 'trim',
|
||||
'fieldControl' => [
|
||||
'linkPopup' => [
|
||||
'options' => [
|
||||
'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_link_formlabel',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
'event' => array(
|
||||
'exclude' => 1,
|
||||
|
|
|
@ -39,6 +39,10 @@
|
|||
<source>Not defined</source>
|
||||
<target>Noch nicht definiert</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_events_domain_model_date.options.canceled_link">
|
||||
<source>Link regarding cancellation</source>
|
||||
<target>Link bezüglich Absage</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_events_domain_model_date.event">
|
||||
<source>Associated event</source>
|
||||
<target>Verknüpfte Veranstaltungen</target>
|
||||
|
|
|
@ -30,6 +30,9 @@
|
|||
<trans-unit id="tx_events_domain_model_date.canceled.options.postponed_date.0">
|
||||
<source>Not defined</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_events_domain_model_date.canceled_link">
|
||||
<source>Link regarding cancellation</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_events_domain_model_date.event">
|
||||
<source>Associated event</source>
|
||||
</trans-unit>
|
||||
|
|
|
@ -92,5 +92,6 @@ CREATE TABLE tx_events_domain_model_date (
|
|||
|
||||
event int(11) unsigned DEFAULT '0' NOT NULL,
|
||||
postponed_date int(11) unsigned DEFAULT '0' NOT NULL,
|
||||
canceled_link varchar(1024) DEFAULT '' NOT NULL,
|
||||
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue