diff --git a/source/logic/types.ts b/source/logic/types.ts index a2f5121..a689409 100644 --- a/source/logic/types.ts +++ b/source/logic/types.ts @@ -46,6 +46,11 @@ namespace _zeitbild.frontend_web.type | string ); + link : ( + null + | + string + ); description : ( null | diff --git a/source/pages/event_add/logic.ts b/source/pages/event_add/logic.ts index dc03359..50a08cb 100644 --- a/source/pages/event_add/logic.ts +++ b/source/pages/event_add/logic.ts @@ -70,6 +70,7 @@ namespace _zeitbild.frontend_web.pages begin : lib_plankton.pit.type_datetime; end : (null | lib_plankton.pit.type_datetime); location : (null | string); + link : (null | string); description : (null | string); } > = new lib_plankton.zoo_form.class_form< @@ -83,6 +84,7 @@ namespace _zeitbild.frontend_web.pages begin : lib_plankton.pit.type_datetime; end : (null | lib_plankton.pit.type_datetime); location : (null | string); + link : (null | string); description : (null | string); } >( @@ -92,6 +94,7 @@ namespace _zeitbild.frontend_web.pages "begin": value.event_object.begin, "end": value.event_object.end, "location": value.event_object.location, + "link": value.event_object.link, "description": value.event_object.description, }), (representation) => ({ @@ -101,6 +104,7 @@ namespace _zeitbild.frontend_web.pages "begin": representation.begin, "end": representation.end, "location": representation.location, + "link": representation.link, "description": representation.description, } }), @@ -166,6 +170,14 @@ namespace _zeitbild.frontend_web.pages ), "label": lib_plankton.translate.get("event.location") }, + { + "name": "link", + "input": new lib_plankton.zoo_input.class_input_soft( + new lib_plankton.zoo_input.class_input_text( + ) + ), + "label": lib_plankton.translate.get("event.link") + }, { "name": "description", "input": new lib_plankton.zoo_input.class_input_soft( @@ -223,6 +235,7 @@ namespace _zeitbild.frontend_web.pages }, "end": null, "location": null, + "link": null, "description": null, } } diff --git a/source/pages/event_edit/logic.ts b/source/pages/event_edit/logic.ts index 97131e4..e829916 100644 --- a/source/pages/event_edit/logic.ts +++ b/source/pages/event_edit/logic.ts @@ -30,6 +30,7 @@ namespace _zeitbild.frontend_web.pages begin : lib_plankton.pit.type_datetime; end : (null | lib_plankton.pit.type_datetime); location : (null | string); + link : (null | string); description : (null | string); } > = new lib_plankton.zoo_form.class_form< @@ -39,6 +40,7 @@ namespace _zeitbild.frontend_web.pages begin : lib_plankton.pit.type_datetime; end : (null | lib_plankton.pit.type_datetime); location : (null | string); + link : (null | string); description : (null | string); } >( @@ -47,6 +49,7 @@ namespace _zeitbild.frontend_web.pages "begin": value.begin, "end": value.end, "location": value.location, + "link": value.link, "description": value.description, }), (representation) => ({ @@ -54,6 +57,7 @@ namespace _zeitbild.frontend_web.pages "begin": representation.begin, "end": representation.end, "location": representation.location, + "link": representation.link, "description": representation.description, }), new lib_plankton.zoo_input.class_input_group( @@ -96,6 +100,14 @@ namespace _zeitbild.frontend_web.pages ), "label": lib_plankton.translate.get("event.location") }, + { + "name": "link", + "input": new lib_plankton.zoo_input.class_input_soft( + new lib_plankton.zoo_input.class_input_text( + ) + ), + "label": lib_plankton.translate.get("event.link") + }, { "name": "description", "input": new lib_plankton.zoo_input.class_input_soft( diff --git a/source/widgets/listview/logic.ts b/source/widgets/listview/logic.ts index bdab148..1458e57 100644 --- a/source/widgets/listview/logic.ts +++ b/source/widgets/listview/logic.ts @@ -144,6 +144,14 @@ namespace _zeitbild.frontend_web.widgets.listview : entry.event_object.location ), + "label_link": lib_plankton.translate.get("event.link"), + "link": ( + (entry.event_object.link === null) + ? + "?" + : + entry.event_object.link + ), "label_description": lib_plankton.translate.get("event.description"), "description": ( (entry.event_object.description === null) diff --git a/source/widgets/listview/templates/entry.html.tpl b/source/widgets/listview/templates/entry.html.tpl index 94dd629..a1b2751 100644 --- a/source/widgets/listview/templates/entry.html.tpl +++ b/source/widgets/listview/templates/entry.html.tpl @@ -7,6 +7,10 @@ {{location}} +
+ + {{link}} +