Extend date canceld form

This commit is contained in:
Dirk Koritnik 2021-03-11 08:31:49 +01:00 committed by Daniel Siepmann
parent 55530ee062
commit ce723b01bc
4 changed files with 35 additions and 10 deletions

View file

@ -143,11 +143,22 @@ return [
'exclude' => true, 'exclude' => true,
'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_date.xlf:tx_events_domain_model_date.canceled', 'label' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_date.xlf:tx_events_domain_model_date.canceled',
'config' => [ 'config' => [
'type' => 'check', 'type' => 'select',
'renderType' => 'checkboxToggle', 'renderType' => 'selectSingle',
'default' => 0, 'default' => 'no',
'items' => [ 'items' => [
['LLL:EXT:events/Resources/Private/Language/locallang_csh_date.xlf:tx_events_domain_model_date.canceled.yes'], '0' => [
'0' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_date.xlf:tx_events_domain_model_date.canceled.options.no',
'1' => 'no',
],
'1' => [
'0' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_date.xlf:tx_events_domain_model_date.canceled.options.canceled',
'1' => 'canceled',
],
'2' => [
'0' => 'LLL:EXT:events/Resources/Private/Language/locallang_csh_date.xlf:tx_events_domain_model_date.canceled.options.postponed',
'1' => 'postponed',
],
], ],
], ],
], ],

View file

@ -16,13 +16,21 @@
<target>Ende</target> <target>Ende</target>
</trans-unit> </trans-unit>
<trans-unit id="tx_events_domain_model_date.canceled"> <trans-unit id="tx_events_domain_model_date.canceled">
<source>Canceled?</source> <source>Canceled or postponed?</source>
<target>Abgesagt?</target> <target>Abgesagt oder verschoben?</target>
</trans-unit> </trans-unit>
<trans-unit id="tx_events_domain_model_date.canceled.yes"> <trans-unit id="tx_events_domain_model_date.canceled.options.no">
<source>No</source>
<target>Nein</target>
</trans-unit>
<trans-unit id="tx_events_domain_model_date.canceled.options.canceled">
<source>Canceled</source> <source>Canceled</source>
<target>Abgesagt</target> <target>Abgesagt</target>
</trans-unit> </trans-unit>
<trans-unit id="tx_events_domain_model_date.canceled.options.postponed">
<source>Postponed</source>
<target>Verschoben</target>
</trans-unit>
<trans-unit id="tx_events_domain_model_date.event"> <trans-unit id="tx_events_domain_model_date.event">
<source>Associated event</source> <source>Associated event</source>
<target>Verknüpfte Veranstaltungen</target> <target>Verknüpfte Veranstaltungen</target>

View file

@ -13,11 +13,17 @@
<source>End</source> <source>End</source>
</trans-unit> </trans-unit>
<trans-unit id="tx_events_domain_model_date.canceled"> <trans-unit id="tx_events_domain_model_date.canceled">
<source>Canceled?</source> <source>Canceled or postponed?</source>
</trans-unit> </trans-unit>
<trans-unit id="tx_events_domain_model_date.canceled.yes"> <trans-unit id="tx_events_domain_model_date.canceled.options.no">
<source>No</source>
</trans-unit>
<trans-unit id="tx_events_domain_model_date.canceled.options.canceled">
<source>Canceled</source> <source>Canceled</source>
</trans-unit> </trans-unit>
<trans-unit id="tx_events_domain_model_date.canceled.options.postponed">
<source>Postponed</source>
</trans-unit>
<trans-unit id="tx_events_domain_model_date.event"> <trans-unit id="tx_events_domain_model_date.event">
<source>Associated event</source> <source>Associated event</source>
</trans-unit> </trans-unit>

View file

@ -71,7 +71,7 @@ CREATE TABLE tx_events_domain_model_date (
event int(11) unsigned DEFAULT '0' NOT NULL, event int(11) unsigned DEFAULT '0' NOT NULL,
start int(11) DEFAULT NULL, start int(11) DEFAULT NULL,
end int(11) DEFAULT NULL, end int(11) DEFAULT NULL,
canceled int(11) NOT NULL DEFAULT 0, canceled varchar(255) DEFAULT 'no' NOT NULL,
KEY event (event), KEY event (event),
KEY dataHandler (event, t3ver_wsid, pid) KEY dataHandler (event, t3ver_wsid, pid)
); );