Commit 4bfa4175 authored by Jonas Götze's avatar Jonas Götze
Browse files

[WIP][FEATURE] Add fields for publish datetimes

parent 48e3f1bf
......@@ -38,6 +38,14 @@ finishers:
enddate:
mapOnDatabaseColumn: 'enddate'
addTimeFromField: 'endtime'
publishstartdate:
mapOnDatabaseColumn: 'starttime'
addTimeFromField: 'publishstarttime'
skipIfValueIsEmpty: true
publishenddate:
mapOnDatabaseColumn: 'endtime'
addTimeFromField: 'publishendtime'
skipIfValueIsEmpty: true
teaser:
mapOnDatabaseColumn: 'teaser'
description:
......@@ -133,7 +141,7 @@ renderables:
identifier: NotEmpty
-
type: GridRow
identifier: gridrow-1
identifier: gridrow-event-datetimes
label: 'Grid: Row'
renderables:
-
......@@ -249,3 +257,52 @@ renderables:
type: ImageUpload
identifier: image
label: Images
-
type: GridRow
identifier: gridrow-publish-datetimes
label: 'Grid: Row'
renderables:
-
defaultValue: ''
properties:
fluidAdditionalAttributes:
step: 1
elementDescription: 'The date from which on this event will be visible'
type: Date
identifier: publishstartdate
label: 'Publish from date'
-
defaultValue: ''
properties:
elementDescription: 'The time from which on this event will be visible (hh:mm)'
type: Text
identifier: publishstarttime
label: 'Publish from time'
validators:
-
identifier: RegularExpression
options:
regularExpression: '/^(2[0-3]|[01]?[0-9]):([0-5]?[0-9])$/'
-
defaultValue: ''
properties:
fluidAdditionalAttributes:
min: ''
max: ''
step: 1
elementDescription: 'The date from which on this event will no be visible anymore'
type: Date
identifier: publishenddate
label: 'Publish end date'
-
defaultValue: ''
properties:
elementDescription: 'The time from which on this event will not be visible anymore (hh:mm)'
type: Text
identifier: publishendtime
label: 'Publish end time'
validators:
-
identifier: RegularExpression
options:
regularExpression: '/^(2[0-3]|[01]?[0-9]):([0-5]?[0-9])$/'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment