forked from CGM_Public/pretix_original
Add "Event date" to PDF editors
This commit is contained in:
@@ -118,6 +118,14 @@ DEFAULT_VARIABLES = OrderedDict((
|
|||||||
"SHORT_DATETIME_FORMAT"
|
"SHORT_DATETIME_FORMAT"
|
||||||
) if ev.date_to else ""
|
) if ev.date_to else ""
|
||||||
}),
|
}),
|
||||||
|
("event_end_date", {
|
||||||
|
"label": _("Event end date"),
|
||||||
|
"editor_sample": _("2017-05-31"),
|
||||||
|
"evaluate": lambda op, order, ev: date_format(
|
||||||
|
ev.date_to.astimezone(timezone(ev.settings.timezone)),
|
||||||
|
"SHORT_DATE_FORMAT"
|
||||||
|
) if ev.date_to else ""
|
||||||
|
}),
|
||||||
("event_end_time", {
|
("event_end_time", {
|
||||||
"label": _("Event end time"),
|
"label": _("Event end time"),
|
||||||
"editor_sample": _("22:00"),
|
"editor_sample": _("22:00"),
|
||||||
|
|||||||
Reference in New Issue
Block a user