chore: translate some strings, add organizer to waterfall view

This commit is contained in:
2025-05-19 05:11:45 +02:00
parent 39f483fdaa
commit 89543558b0
6 changed files with 18 additions and 12 deletions

View File

@@ -9,7 +9,7 @@ async function createEvent() {
// Walidacja prostych pól
if (!title || !location || !eventDateRaw) {
alert("Uzupełnij wszystkie wymagane pola!");
alert("Please fill out all of the required fields!");
return;
}
@@ -34,11 +34,11 @@ async function createEvent() {
throw new Error(errorText);
}
alert("Wydarzenie zostało utworzone!");
alert("Event created successfully!");
window.location.href = "/"; // Przekierowanie do strony głównej
} catch (error) {
console.error("Błąd podczas tworzenia:", error);
alert("Nie udało się utworzyć wydarzenia: " + error);
console.error("Couldn't create event:", error);
alert("Couldn't create new event: " + error);
}
}

View File

@@ -58,7 +58,10 @@ async function loadEvents(org_id: number, evs?: Promise<any>) {
// <span>${ev.title}</span>`
// Do odkomentowania kiedy widok podglądu wydarzeń będzie gotowy
card.innerHTML = `
<span><a href="/view.html?event=${ev.eventId}" style="color: #2898BD">${ev.title}</a></span>`
<span>
<a href="/view.html?event=${ev.eventId}" style="color: #2898BD">${ev.title}</a>
<p style="margin: 0">${ev.organisation}</p>
</span>`
if (org_id == ev.organisationId) {
card.innerHTML += `
<div>

View File

@@ -15,7 +15,7 @@ async function modifyEvent()
// Walidacja prostych pól
if (!title || !location || !eventDateRaw)
{
alert("Należy uzupełnić wszystkie pola!");
alert("Please fill out all of the required fields!");
return;
}