|
@@ -129,7 +129,7 @@ include __DIR__ . '/../includes/header.php';
|
|
|
<div class="panel">
|
|
<div class="panel">
|
|
|
<h3>Übersicht Vorbestellte Artikel</h3>
|
|
<h3>Übersicht Vorbestellte Artikel</h3>
|
|
|
<div class="table-responsive">
|
|
<div class="table-responsive">
|
|
|
- <table class="table-compact">
|
|
|
|
|
|
|
+ <table class="table-compact responsive-table">
|
|
|
<thead>
|
|
<thead>
|
|
|
<tr>
|
|
<tr>
|
|
|
<th>Produkt</th>
|
|
<th>Produkt</th>
|
|
@@ -140,9 +140,9 @@ include __DIR__ . '/../includes/header.php';
|
|
|
<tbody>
|
|
<tbody>
|
|
|
<?php foreach ($summaryRows as $row): ?>
|
|
<?php foreach ($summaryRows as $row): ?>
|
|
|
<tr>
|
|
<tr>
|
|
|
- <td><?php echo htmlspecialchars($row['name']); ?></td>
|
|
|
|
|
- <td><?php echo $row['size'] !== '' ? htmlspecialchars($row['size']) : '—'; ?></td>
|
|
|
|
|
- <td><?php echo (int)$row['quantity']; ?></td>
|
|
|
|
|
|
|
+ <td data-label="Produkt"><?php echo htmlspecialchars($row['name']); ?></td>
|
|
|
|
|
+ <td data-label="Größe"><?php echo $row['size'] !== '' ? htmlspecialchars($row['size']) : '—'; ?></td>
|
|
|
|
|
+ <td data-label="Menge"><?php echo (int)$row['quantity']; ?></td>
|
|
|
</tr>
|
|
</tr>
|
|
|
<?php endforeach; ?>
|
|
<?php endforeach; ?>
|
|
|
</tbody>
|
|
</tbody>
|
|
@@ -158,7 +158,7 @@ include __DIR__ . '/../includes/header.php';
|
|
|
</div>
|
|
</div>
|
|
|
<?php else: ?>
|
|
<?php else: ?>
|
|
|
<div class="table-responsive">
|
|
<div class="table-responsive">
|
|
|
- <table>
|
|
|
|
|
|
|
+ <table class="responsive-table">
|
|
|
<thead>
|
|
<thead>
|
|
|
<tr>
|
|
<tr>
|
|
|
<th>Bestellnummer</th>
|
|
<th>Bestellnummer</th>
|
|
@@ -172,9 +172,9 @@ include __DIR__ . '/../includes/header.php';
|
|
|
<tbody>
|
|
<tbody>
|
|
|
<?php foreach ($reservations as $reservation): ?>
|
|
<?php foreach ($reservations as $reservation): ?>
|
|
|
<tr>
|
|
<tr>
|
|
|
- <td><strong><?php echo htmlspecialchars($reservation['id']); ?></strong></td>
|
|
|
|
|
- <td><?php echo htmlspecialchars($reservation['customer_name']); ?></td>
|
|
|
|
|
- <td>
|
|
|
|
|
|
|
+ <td data-label="Bestellnummer"><strong><?php echo htmlspecialchars($reservation['id']); ?></strong></td>
|
|
|
|
|
+ <td data-label="Kunde"><?php echo htmlspecialchars($reservation['customer_name']); ?></td>
|
|
|
|
|
+ <td data-label="Artikel">
|
|
|
<?php
|
|
<?php
|
|
|
$itemCount = 0;
|
|
$itemCount = 0;
|
|
|
foreach ($reservation['items'] as $item) {
|
|
foreach ($reservation['items'] as $item) {
|
|
@@ -183,8 +183,8 @@ include __DIR__ . '/../includes/header.php';
|
|
|
echo $itemCount . ' Artikel';
|
|
echo $itemCount . ' Artikel';
|
|
|
?>
|
|
?>
|
|
|
</td>
|
|
</td>
|
|
|
- <td><?php echo formatDate($reservation['created']); ?></td>
|
|
|
|
|
- <td>
|
|
|
|
|
|
|
+ <td data-label="Erstellt"><?php echo formatDate($reservation['created']); ?></td>
|
|
|
|
|
+ <td data-label="Status">
|
|
|
<?php
|
|
<?php
|
|
|
if (isset($reservation['backorder_status']) && $reservation['backorder_status'] === 'notified') {
|
|
if (isset($reservation['backorder_status']) && $reservation['backorder_status'] === 'notified') {
|
|
|
echo '<span class="status status-notified">Informiert</span>';
|
|
echo '<span class="status status-notified">Informiert</span>';
|
|
@@ -193,7 +193,7 @@ include __DIR__ . '/../includes/header.php';
|
|
|
}
|
|
}
|
|
|
?>
|
|
?>
|
|
|
</td>
|
|
</td>
|
|
|
- <td>
|
|
|
|
|
|
|
+ <td data-label="Aktionen">
|
|
|
<?php if ((!isset($reservation['backorder_status']) || $reservation['backorder_status'] !== 'notified') && canFulfillReservationItems($reservation['items'])): ?>
|
|
<?php if ((!isset($reservation['backorder_status']) || $reservation['backorder_status'] !== 'notified') && canFulfillReservationItems($reservation['items'])): ?>
|
|
|
<form method="POST" style="display: inline;" onsubmit="return confirm('Kunden informieren, dass die Vorbestellung zur Abholung bereit ist?');">
|
|
<form method="POST" style="display: inline;" onsubmit="return confirm('Kunden informieren, dass die Vorbestellung zur Abholung bereit ist?');">
|
|
|
<input type="hidden" name="reservation_id" value="<?php echo htmlspecialchars($reservation['id']); ?>">
|
|
<input type="hidden" name="reservation_id" value="<?php echo htmlspecialchars($reservation['id']); ?>">
|