[mod] link für events berücksichtigen [mod] Wochentage übersetzen

This commit is contained in:
Fenris Wolf 2024-10-14 19:07:35 +02:00
parent 5736e1a5a2
commit 34ec6125c5
7 changed files with 72 additions and 7 deletions

View file

@ -46,6 +46,11 @@ namespace _zeitbild.frontend_web.type
|
string
);
link : (
null
|
string
);
description : (
null
|

View file

@ -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<string>(
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<string>(
@ -223,6 +235,7 @@ namespace _zeitbild.frontend_web.pages
},
"end": null,
"location": null,
"link": null,
"description": null,
}
}

View file

@ -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<any>(
@ -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<string>(
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<string>(

View file

@ -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)

View file

@ -7,6 +7,10 @@
<span class="listview-entry-label">{{label_location}}</span>
<span class="listview-entry-value">{{location}}</span>
</div>
<div class="listview-entry-field listview-entry-link">
<span class="listview-entry-label">{{label_link}}</span>
<a class="listview-entry-value" href="{{link}}" target="_blank">{{link}}</a>
</div>
<!--
<div class="listview-entry-field listview-entry-description">
<span class="listview-entry-label">{{label_description}}</span>

View file

@ -208,6 +208,22 @@ namespace _zeitbild.frontend_web.widgets.weekview
:
""
)
+
(
(event_object.link !== null)
?
(
lib_plankton.string.coin(
"{{label}}: {{value}}\n",
{
"label": lib_plankton.translate.get("event.link"),
"value": event_object.link,
}
)
)
:
""
)
/*
+
(
@ -860,6 +876,13 @@ namespace _zeitbild.frontend_web.widgets.weekview
"label_control_week": lib_plankton.translate.get("widget.weekview.controls.week"),
"label_control_count": lib_plankton.translate.get("widget.weekview.controls.count"),
"label_control_apply": lib_plankton.translate.get("widget.weekview.controls.apply"),
"label_weekday_monday": lib_plankton.translate.get("common.weekday.monday"),
"label_weekday_tuesday": lib_plankton.translate.get("common.weekday.tuesday"),
"label_weekday_wednesday": lib_plankton.translate.get("common.weekday.wednesday"),
"label_weekday_thursday": lib_plankton.translate.get("common.weekday.thursday"),
"label_weekday_friday": lib_plankton.translate.get("common.weekday.friday"),
"label_weekday_saturday": lib_plankton.translate.get("common.weekday.saturday"),
"label_weekday_sunday": lib_plankton.translate.get("common.weekday.sunday"),
}
);
this.container = target_element.querySelector(".weekview");

View file

@ -19,13 +19,13 @@
<thead>
<tr>
<th class="calendar-cell"></th>
<th class="calendar-cell calendar-cell-day">Mo</th>
<th class="calendar-cell calendar-cell-day">Di</th>
<th class="calendar-cell calendar-cell-day">Mi</th>
<th class="calendar-cell calendar-cell-day">Do</th>
<th class="calendar-cell calendar-cell-day">Fr</th>
<th class="calendar-cell calendar-cell-day">Sa</th>
<th class="calendar-cell calendar-cell-day">So</th>
<th class="calendar-cell calendar-cell-day">{{label_weekday_monday}}</th>
<th class="calendar-cell calendar-cell-day">{{label_weekday_tuesday}}</th>
<th class="calendar-cell calendar-cell-day">{{label_weekday_wednesday}}</th>
<th class="calendar-cell calendar-cell-day">{{label_weekday_thursday}}</th>
<th class="calendar-cell calendar-cell-day">{{label_weekday_friday}}</th>
<th class="calendar-cell calendar-cell-day">{{label_weekday_saturday}}</th>
<th class="calendar-cell calendar-cell-day">{{label_weekday_sunday}}</th>
</tr>
</thead>
<tbody>