25 lines
		
	
	
		
			675 B
		
	
	
	
		
			PHP
		
	
	
	
		
		
			
		
	
	
			25 lines
		
	
	
		
			675 B
		
	
	
	
		
			PHP
		
	
	
	
|  | <?php | ||
|  | 
 | ||
|  | /** | ||
|  |  * @var \App\View\AppView $this | ||
|  |  * @var \CakeProducts\Model\Entity\Product[]|\Cake\Datasource\EntityInterface[] $products | ||
|  |  * @var \CakeProducts\Model\Entity\Product[]|\Cake\Datasource\EntityInterface[] $productSkus | ||
|  |  * @var bool $includeFile | ||
|  |  */ | ||
|  | $includeFile = $includeFile ?? false; | ||
|  | 
 | ||
|  | echo $this->Form->control('product_id', [ | ||
|  |     'options' => $products ?? [], | ||
|  | ]); | ||
|  | echo $this->Form->control('product_sku_id', [ | ||
|  |     'options' => $productSkus ?? [] | ||
|  | ]); | ||
|  | 
 | ||
|  | echo $includeFile ? $this->Form->control('photo', [ | ||
|  |     'type' => 'file', | ||
|  | ]) : ''; | ||
|  | echo $this->Form->control('primary_photo'); | ||
|  | echo $this->Form->control('photo_position'); | ||
|  | echo $this->Form->control('enabled'); | ||
|  | ?>
 |