36 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			PHP
		
	
	
	
		
		
			
		
	
	
			36 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			PHP
		
	
	
	
|  | <?php | ||
|  | /** | ||
|  |  * @var \App\View\AppView $this | ||
|  |  * @var \Cake\Datasource\EntityInterface $product | ||
|  |  * @var string[]|\Cake\Collection\CollectionInterface $productCategories | ||
|  |  */ | ||
|  | ?>
 | ||
|  | <div class="row"> | ||
|  |     <aside class="column"> | ||
|  |         <div class="side-nav"> | ||
|  |             <h4 class="heading"><?= __('Actions') ?></h4>
 | ||
|  |             <?= $this->Form->postLink( | ||
|  |                 __('Delete'), | ||
|  |                 ['action' => 'delete', $product->id], | ||
|  |                 ['confirm' => __('Are you sure you want to delete # {0}?', $product->id), 'class' => 'side-nav-item'] | ||
|  |             ) ?>
 | ||
|  |             <?= $this->Html->link(__('List Products'), ['action' => 'index'], ['class' => 'side-nav-item']) ?>
 | ||
|  |         </div> | ||
|  |     </aside> | ||
|  |     <div class="column column-80"> | ||
|  |         <div class="products form content"> | ||
|  |             <?= $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'); | ||
|  |                 ?>
 | ||
|  |             </fieldset> | ||
|  |             <?= $this->Form->button(__('Submit')) ?>
 | ||
|  |             <?= $this->Form->end() ?>
 | ||
|  |         </div> | ||
|  |     </div> | ||
|  | </div> |