product photos first commit - only upload base photo
This commit is contained in:
31
templates/ProductPhotos/edit.php
Normal file
31
templates/ProductPhotos/edit.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \App\View\AppView $this
|
||||
* @var \Cake\Datasource\EntityInterface $productPhoto
|
||||
* @var string[]|\Cake\Collection\CollectionInterface $products
|
||||
*/
|
||||
?>
|
||||
<div class="row">
|
||||
<aside class="column">
|
||||
<div class="side-nav">
|
||||
<h4 class="heading"><?= __('Actions') ?></h4>
|
||||
<?= $this->Form->postLink(
|
||||
__('Delete'),
|
||||
['action' => 'delete', $productPhoto->id],
|
||||
['confirm' => __('Are you sure you want to delete # {0}?', $productPhoto->id), 'class' => 'side-nav-item']
|
||||
) ?>
|
||||
<?= $this->Html->link(__('List Product Photos'), ['action' => 'index'], ['class' => 'side-nav-item']) ?>
|
||||
</div>
|
||||
</aside>
|
||||
<div class="column column-80">
|
||||
<div class="productPhotos form content">
|
||||
<?= $this->Form->create($productPhoto) ?>
|
||||
<fieldset>
|
||||
<legend><?= __('Edit Product Photo') ?></legend>
|
||||
<?= $this->element('ProductPhotos/form', ['includeFile' => false]); ?>
|
||||
</fieldset>
|
||||
<?= $this->Form->button(__('Submit')) ?>
|
||||
<?= $this->Form->end() ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user