variant options wip
This commit is contained in:
@@ -7,4 +7,7 @@ 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('enabled');
|
||||
?>
|
||||
?>
|
||||
<legend><?= __('Variant Options') . '<small class="ms-2">' . $this->Html->link('Add Option', '#', [
|
||||
'id' => 'add-option-button',
|
||||
]) . '</small>'; ?></legend>
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \App\View\AppView $this
|
||||
* @var \Cake\Datasource\EntityInterface $productCategoryAttributeOption
|
||||
*/
|
||||
$cnt = 0;
|
||||
$prefix = $prefix ?? '';
|
||||
\Cake\Log\Log::debug('$prefix');
|
||||
\Cake\Log\Log::debug($prefix);
|
||||
?>
|
||||
<div class="container product-category-attribute-options-container" data-test="1" data-prefix="<?= $prefix; ?>">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<?= $this->Form->control($prefix . 'attribute_value', [
|
||||
'label' => 'Value',
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col">
|
||||
<?= $this->Form->control($prefix . 'attribute_label', [
|
||||
'label' => 'Label',
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col">
|
||||
<?= $this->Form->control($prefix . 'enabled', [
|
||||
'type' => 'checkbox',
|
||||
'checked' => true,
|
||||
'label' => 'Enabled',
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user