mirror of
https://github.com/Alvin-Zilverstand/Challenge_15_Magazijn_App_Maken.git
synced 2026-03-06 13:22:35 +01:00
Implement multilingual support with Dutch and English translations across the application
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Magazijn Dashboard - Student</title>
|
||||
<title data-translate="warehouse-dashboard-student">Magazijn Dashboard - Student</title>
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css" rel="stylesheet">
|
||||
@@ -12,22 +12,30 @@
|
||||
<body>
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#">School Magazijn</a>
|
||||
<a class="navbar-brand" href="#" data-translate="school-warehouse">School Magazijn</a>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarNav">
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" href="student.html">Beschikbare Artikelen</a>
|
||||
<a class="nav-link active" href="student.html" data-translate="available-items">Beschikbare Artikelen</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="student-reservations.html">Mijn Reserveringen</a>
|
||||
<a class="nav-link" href="student-reservations.html" data-translate="my-reservations">Mijn Reserveringen</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="navbar-nav ms-auto">
|
||||
<div class="language-toggle nav-item">
|
||||
<span class="language-label" id="nlLabel">NL</span>
|
||||
<label class="language-switch">
|
||||
<input type="checkbox" id="languageToggle">
|
||||
<span class="language-slider"></span>
|
||||
</label>
|
||||
<span class="language-label" id="enLabel">EN</span>
|
||||
</div>
|
||||
<span class="nav-item nav-link text-light" id="userInfo"></span>
|
||||
<a class="nav-link" href="#" id="logoutBtn">Uitloggen</a>
|
||||
<a class="nav-link" href="#" id="logoutBtn" data-translate="logout">Uitloggen</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -36,20 +44,20 @@
|
||||
<div class="container mt-4">
|
||||
<div class="row mb-4">
|
||||
<div class="col-auto">
|
||||
<h2>Beschikbare Artikelen</h2>
|
||||
<h2 data-translate="available-items">Beschikbare Artikelen</h2>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="input-group search-input-group">
|
||||
<span class="input-group-text"><i class="bi bi-search"></i></span>
|
||||
<input type="text" class="form-control" id="searchInput" placeholder="Zoek artikelen...">
|
||||
<button class="btn btn-outline-secondary" type="button" id="clearSearch" title="Zoekopdracht wissen">
|
||||
<input type="text" class="form-control" id="searchInput" placeholder="Zoek artikelen..." data-translate="search-items">
|
||||
<button class="btn btn-outline-secondary" type="button" id="clearSearch" title="Zoekopdracht wissen" data-translate="clear-search">
|
||||
<i class="bi bi-x-lg"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-auto ms-auto">
|
||||
<select class="form-select me-2" id="locationFilter">
|
||||
<option value="all">Alle Locaties</option>
|
||||
<option value="all" data-translate="all-locations">Alle Locaties</option>
|
||||
<option value="Heerlen">Heerlen</option>
|
||||
<option value="Maastricht">Maastricht</option>
|
||||
<option value="Sittard">Sittard</option>
|
||||
@@ -58,10 +66,10 @@
|
||||
<div class="col-auto">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-outline-primary view-mode-btn active" data-mode="grid">
|
||||
<i class="bi bi-grid"></i> Raster
|
||||
<i class="bi bi-grid"></i> <span data-translate="grid">Raster</span>
|
||||
</button>
|
||||
<button type="button" class="btn btn-outline-primary view-mode-btn" data-mode="list">
|
||||
<i class="bi bi-list"></i> Lijst
|
||||
<i class="bi bi-list"></i> <span data-translate="list">Lijst</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -78,12 +86,12 @@
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Afbeelding</th>
|
||||
<th>Artikelnaam</th>
|
||||
<th>Beschrijving</th>
|
||||
<th>Locatie</th>
|
||||
<th>Beschikbare Hoeveelheid</th>
|
||||
<th>Actie</th>
|
||||
<th data-translate="image">Afbeelding</th>
|
||||
<th data-translate="item-name">Artikelnaam</th>
|
||||
<th data-translate="description">Beschrijving</th>
|
||||
<th data-translate="location">Locatie</th>
|
||||
<th data-translate="quantity-available">Beschikbare Hoeveelheid</th>
|
||||
<th data-translate="action">Actie</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="itemsListBody">
|
||||
@@ -133,6 +141,7 @@
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="js/translations.js"></script>
|
||||
<script src="js/student.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user