/
var
/
www
/
vhosts
/
ihelp.ro
/
httpdocs
/
templates
/
Dashboard
/
Products
/
/var/www/vhosts/ihelp.ro/httpdocs/templates/Dashboard/Products
mkdir
upload
Name
Size
Mode
Actions
add.php
7314
0644
edit
dl
rm
edit.php
7550
0644
edit
dl
rm
edit_gallery.php
3469
0644
edit
dl
rm
index.php
22893
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/httpdocs/templates/Dashboard/Products/edit_gallery.php
(3469B)
<?php $this->assign('title', __('Editare galerie')); ?> <?php $this->Breadcrumbs->reset()->add(__('Editare galerie'), null); $this->Breadcrumbs->prepend([ ['title' => __('Contul meu'), 'url' => ['controller' => 'Profiles', 'action' => 'view']], ]); $this->Breadcrumbs->prepend([ ['title' => __('Acasă'), 'url' => ['controller' => 'Pages', 'action' => 'home']], ]); ?> <div class="block__profile"> <div class="container"> <div class="block__breadcrumbs my-4"> <?php echo $this->Breadcrumbs->render() ?> </div> <div class="row"> <div class="col-12"> <h1> <?php echo __('Contul meu'); ?> </h1> </div> <aside class="col-lg-3"> <div class="side-nav profile-side-nav"> <?php echo $this->element('sidebar'); ?> </div> </aside> <div class="col-lg-9 pl-lg-0"> <div class="products form content profile-content"> <div class="d-flex mb-3"> <h3 class="my-auto"><?php echo __('Pozele produsului'); ?></h3> <div class="my-auto ml-auto"> <?= $this->Html->link( '<svg> <use xlink:href="#svg-chevron-left"></use> </svg> <span> ' . __('Înapoi') . ' </span>', ['prefix' => 'Dashboard', 'plugin' => false, 'controller' => 'Products', 'action' => 'edit', $product->uuid], [ 'escape' => false, 'class' => 'btn outline gray size-xs my-auto ml-auto svg-on-left has-svg' ] ) ?> </div> </div> <?php echo $this->element('GalleryImages/dropzone', ['foreignKey' => $product->id, 'model' => $model]); ?> <div class="profile-content-wrapper py-0 rows-striped"> <?php if ($images) : ?> <?php foreach ($images as $image) : ?> <div class="row"> <div class="col-6 col-md-3"> <div class="thumb-img"> <?php echo $this->Html->image($this->Custom->generateUrlHdy( [ 'model_name' => $image->model, 'uuid' => $image->foreign_uuid, 'image_name' => 'resize-' . $image->image_path ], true, 1024, 960, true ), ['class' => 'img-fluid']) ?> </div> </div> <div class="col-6 col-md-3 pl-md-0"> <p> <?php echo h($image->name); ?> </p> </div> <div class="col-6 col-md-3 pl-md-0"> <?php echo h($image->description); ?> </div> <div class="col-6 col-md-3 pl-md-0 text-right my-auto"> <?php echo $this->Form->postLink('<svg><use xlink:href="#svg-circle-checked"></use></svg>', ['prefix' => 'Dashboard', 'controller' => 'GalleryImages', 'action' => 'setFeaturedImage', $product->id, $model, $image->id], ['confirm' => __('Are you sure you want to change featured image?'), 'class' => ($image->is_featured) ? 'btn outline secondary size-xs has-svg disabled' : 'btn outline primary size-xs has-svg', 'escape' => false]); ?> <?php echo $this->Form->postLink('<svg><use xlink:href="#svg-trash"></use></svg>', ['controller' => 'GalleryImages', 'action' => 'delete', $image->id], ['confirm' => __('Are you sure you want to delete # {0}?', $image->title), 'class' => 'btn outline primary size-xs has-svg', 'escape' => false]); ?> </div> </div> <?php endforeach; ?> </div> <?php endif; ?> </div> </div> </div> </div> </div>
Save
cmd:
run