select options for products + skus, photos form
This commit is contained in:
13
templates/Products/select.php
Normal file
13
templates/Products/select.php
Normal 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; ?>
|
||||
Reference in New Issue
Block a user