This commit is contained in:
2025-04-01 01:00:09 -07:00
parent fad4f575b8
commit 17de2e97dd
8 changed files with 69 additions and 14 deletions

View File

@@ -17,11 +17,7 @@
<?= $this->Form->create($product) ?>
<fieldset>
<legend><?= __('Add Product') ?></legend>
<?php
echo $this->Form->control('name');
echo $this->Form->control('product_category_id', ['options' => $productCategories]);
echo $this->Form->control('product_type_id');
?>
<?= $this->element('Products/form'); ?>
</fieldset>
<?= $this->Form->button(__('Submit')) ?>
<?= $this->Form->end() ?>

View File

@@ -22,11 +22,7 @@
<?= $this->Form->create($product) ?>
<fieldset>
<legend><?= __('Edit Product') ?></legend>
<?php
echo $this->Form->control('name');
echo $this->Form->control('product_category_id', ['options' => $productCategories]);
echo $this->Form->control('product_type_id');
?>
<?= $this->element('Products/form'); ?>
</fieldset>
<?= $this->Form->button(__('Submit')) ?>
<?= $this->Form->end() ?>