Feature: Rucksackgewicht als Basis + Zusatz anzeigen
All checks were successful
Docker Build & Push / build-and-push (push) Successful in 9s

This commit is contained in:
AI Agent
2026-07-09 19:51:51 +00:00
parent 9073d92bb5
commit dc7326815d
2 changed files with 3 additions and 1 deletions

View File

@@ -242,3 +242,5 @@ Das Projekt basiert auf bewährten Web-Standards:
### 09.07.2026
* **Fixes:**
* Bugfix ("Headers already sent"): Fehler beim Speichern im Artikel-Editor (`edit_article.php`) behoben, indem Output-Buffering hinzugefügt wurde.
* **Features:**
* Die Gewichts-Anzeige in der Rucksackübersicht (`backpacks.php`) wurde angepasst und zeigt nun das "Basisgewicht + Zusatzgewicht" in Klammern an anstatt nur dem Zusatzgewicht.

View File

@@ -131,7 +131,7 @@ while ($row = $result->fetch_assoc()) {
<i class="fas fa-weight-hanging text-muted me-1"></i>
<?php echo $total_bp_weight; ?> g
<?php if(($bp['extra_weight'] ?? 0) > 0): ?>
<small class="text-muted" title="Basis: <?php echo $bp['weight_grams']; ?>g + Taschen: <?php echo $bp['extra_weight']; ?>g">(+<?php echo $bp['extra_weight']; ?>)</small>
<small class="text-muted" title="Basis: <?php echo $bp['weight_grams']; ?>g + Taschen: <?php echo $bp['extra_weight']; ?>g">(<?php echo $bp['weight_grams']; ?> + <?php echo $bp['extra_weight']; ?>)</small>
<?php endif; ?>
</span>
<span><i class="fas fa-box-open text-muted me-1"></i> <?php echo $bp['volume_liters']; ?> L</span>