diff --git a/public/js/student-reservations.js b/public/js/student-reservations.js
index c71763a..cd9e237 100644
--- a/public/js/student-reservations.js
+++ b/public/js/student-reservations.js
@@ -108,7 +108,7 @@ function filterAndDisplayReservations() {
// Delete (cancel) reservation
async function deleteReservation(reservationId) {
- if (!confirm('Are you sure you want to cancel this reservation?')) return;
+ if (!confirm('Weet je zeker dat je deze reservering wilt annuleren?')) return;
try {
const response = await fetch(`/api/reservations/${reservationId}`, {
@@ -122,17 +122,17 @@ async function deleteReservation(reservationId) {
await loadReservations();
} else {
const error = await response.json();
- alert(error.message || 'Failed to cancel reservation');
+ alert(error.message || 'Kon reservering niet annuleren');
}
} catch (error) {
console.error('Error canceling reservation:', error);
- alert('Failed to cancel reservation');
+ alert('Kon reservering niet annuleren');
}
}
// Return reservation (mark as returned)
async function returnReservation(reservationId) {
- if (!confirm('Are you sure you want to request return for this item? An admin will need to approve the return.')) return;
+ if (!confirm('Weet je zeker dat je retour wilt aanvragen voor dit artikel? Een admin moet de retour goedkeuren.')) return;
try {
const response = await fetch(`/api/reservations/${reservationId}`, {
@@ -151,7 +151,7 @@ async function returnReservation(reservationId) {
const alert = document.createElement('div');
alert.className = 'alert alert-success alert-dismissible fade show';
alert.innerHTML = `
- Return requested successfully! An admin will review your request.
+ Retour succesvol aangevraagd! Een admin zal je verzoek beoordelen.
`;
const container = document.querySelector('.container');
@@ -159,11 +159,11 @@ async function returnReservation(reservationId) {
setTimeout(() => alert.remove(), 5000);
} else {
const error = await response.json();
- throw new Error(error.message || 'Failed to request return');
+ throw new Error(error.message || 'Kon retour niet aanvragen');
}
} catch (error) {
console.error('Error requesting return:', error);
- alert(`Failed to request return: ${error.message}`);
+ alert(`Kon retour niet aanvragen: ${error.message}`);
}
}
diff --git a/public/js/student.js b/public/js/student.js
index 9ea62b0..80f9d97 100644
--- a/public/js/student.js
+++ b/public/js/student.js
@@ -39,7 +39,7 @@ async function loadItems() {
displayItems();
} catch (error) {
console.error('Error loading items:', error);
- alert('Failed to load items');
+ alert('Kon artikelen niet laden');
}
}
@@ -185,7 +185,7 @@ async function loadMyReservations() {
displayMyReservations();
} catch (error) {
console.error('Error loading reservations:', error);
- alert('Failed to load reservations');
+ alert('Kon reserveringen niet laden');
}
}
@@ -221,11 +221,11 @@ async function reserveItem(itemId, quantity = 1) {
window.location.href = '/student-reservations.html';
} else {
const error = await response.json();
- alert(error.message || 'Failed to reserve item');
+ alert(error.message || 'Kon artikel niet reserveren');
}
} catch (error) {
console.error('Error reserving item:', error);
- alert('Failed to reserve item');
+ alert('Kon artikel niet reserveren');
}
}
diff --git a/public/register.html b/public/register.html
index 270542b..ade32a9 100644
--- a/public/register.html
+++ b/public/register.html
@@ -3,7 +3,7 @@
-
Student Registration - School Warehouse System
+
Student Registratie - School Magazijn Systeem
@@ -14,12 +14,12 @@
diff --git a/public/student-reservations.html b/public/student-reservations.html
index 2df3795..b26ae22 100644
--- a/public/student-reservations.html
+++ b/public/student-reservations.html
@@ -3,7 +3,7 @@
-
My Reservations - Student
+
Mijn Reserveringen - Student
@@ -12,40 +12,40 @@
-
My Reservations
+
Mijn Reserveringen
-
+
-
+
-
-
@@ -79,12 +79,12 @@
- | Item Name |
- Quantity |
- Location |
- Reserved Date |
+ Artikelnaam |
+ Hoeveelheid |
+ Locatie |
+ Reserveringsdatum |
Status |
- Actions |
+ Acties |
diff --git a/public/student.html b/public/student.html
index 9e8ae1a..1c2e0ce 100644
--- a/public/student.html
+++ b/public/student.html
@@ -3,7 +3,7 @@
- Warehouse Dashboard - Student
+ Magazijn Dashboard - Student
@@ -12,22 +12,22 @@