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> $products
*/
$this->setLayout('ajax');
?>
<option value="">Select a Product</option>
<?php foreach ($products as $productId => $productName): ?>
<option value="<?= $productId; ?>" <?= $this->request->getQuery('product_id') == $productId ? 'selected="selected"' : ''; ?>><?= $productName; ?></option>
<?php endforeach; ?>