test additions variants table

This commit is contained in:
2025-06-29 22:25:38 -07:00
parent 5bb1110e7f
commit 5cba7de890
9 changed files with 414 additions and 23 deletions

View File

@@ -18,13 +18,7 @@
<?= $this->Form->create($productCategoryVariant) ?>
<fieldset>
<legend><?= __('Add Product Category Variant') ?></legend>
<?php
echo $this->Form->control('name');
echo $this->Form->control('product_category_id', ['options' => $productCategories, 'empty' => true]);
echo $this->Form->control('product_id', ['options' => $products, 'empty' => true]);
echo $this->Form->control('attribute_type_id');
echo $this->Form->control('enabled');
?>
<?= $this->element('ProductCategoryVariants/form'); ?>
</fieldset>
<?= $this->Form->button(__('Submit')) ?>
<?= $this->Form->end() ?>

View File

@@ -23,13 +23,7 @@
<?= $this->Form->create($productCategoryVariant) ?>
<fieldset>
<legend><?= __('Edit Product Category Variant') ?></legend>
<?php
echo $this->Form->control('name');
echo $this->Form->control('product_category_id', ['options' => $productCategories, 'empty' => true]);
echo $this->Form->control('product_id', ['options' => $products, 'empty' => true]);
echo $this->Form->control('attribute_type_id');
echo $this->Form->control('enabled');
?>
<?= $this->element('ProductCategoryVariants/form'); ?>
</fieldset>
<?= $this->Form->button(__('Submit')) ?>
<?= $this->Form->end() ?>

View File

@@ -0,0 +1,11 @@
<?php
/**
* @var array $productCategories
* @var array $products
*/
echo $this->Form->control('name');
echo $this->Form->control('product_category_id', ['options' => $productCategories, 'empty' => true]);
echo $this->Form->control('product_id', ['options' => $products, 'empty' => true]);
echo $this->Form->control('attribute_type_id');
echo $this->Form->control('enabled');
?>