product photos first commit - only upload base photo
This commit is contained in:
26
templates/ProductPhotos/add.php
Normal file
26
templates/ProductPhotos/add.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \App\View\AppView $this
|
||||
* @var \Cake\Datasource\EntityInterface $productPhoto
|
||||
* @var \Cake\Collection\CollectionInterface|string[] $products
|
||||
*/
|
||||
?>
|
||||
<div class="row">
|
||||
<aside class="column">
|
||||
<div class="side-nav">
|
||||
<h4 class="heading"><?= __('Actions') ?></h4>
|
||||
<?= $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, ['type' => 'file']) ?>
|
||||
<fieldset>
|
||||
<legend><?= __('Add Product Photo') ?></legend>
|
||||
<?= $this->element('ProductPhotos/form', ['includeFile' => true]); ?>
|
||||
</fieldset>
|
||||
<?= $this->Form->button(__('Submit')) ?>
|
||||
<?= $this->Form->end() ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user