select options for products + skus, photos form

This commit is contained in:
2025-10-12 02:20:02 -07:00
parent 30aad1dea4
commit 9f1959a0ee
7 changed files with 102 additions and 8 deletions

View File

@@ -0,0 +1,13 @@
<?php
/**
* @var \App\View\AppView $this
* @var iterable<\Cake\Datasource\EntityInterface> $productSkus
*/
$this->setLayout('ajax');
?>
<option value="">Select a SKU</option>
<?php foreach ($productSkus as $productSkuId => $productSku): ?>
<option value="<?= $productSkuId; ?>" <?= $this->request->getQuery('product_sku_id') == $productSkuId ? 'selected="selected"' : ''; ?>><?= $productSku; ?></option>
<?php endforeach; ?>