/
var
/
www
/
vhosts
/
ihelp.ro
/
httpdocs
/
templates
/
cell
/
Admin
/
InfoProductBlock
/
/var/www/vhosts/ihelp.ro/httpdocs/templates/cell/Admin/InfoProductBlock
mkdir
upload
Name
Size
Mode
Actions
display.php
3164
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/httpdocs/templates/cell/Admin/InfoProductBlock/display.php
(3164B)
<div class="row"> <div class="col-xs-6 col-lg-12"> <strong scope="row"><?php echo __('ID'); ?></strong> <p><?php echo '#' . $this->Number->format($product->id); ?></p> <strong scope="row"><?php echo __('UDID'); ?></strong> <p><?php echo h($product->uuid); ?></p> <strong scope="row"><?php echo __('User'); ?></strong> <p> <a href="<?php echo $this->Url->build(['prefix' => 'Admin', 'controller' => 'User', 'action' => 'view', $product->user->id]); ?>"> <span class="label label-default" title="<?php echo '#' . $product->user->id ?>"><?php echo h($product->user->name); ?></span> </a> </p> <strong scope="row"><?php echo __('Cause'); ?></strong> <p> <a href="<?php echo $this->Url->build(['prefix' => 'Admin', 'controller' => 'Cause', 'action' => 'view', $product->cause->id]); ?>"> <span class="label label-default" title="<?php echo '#' . $product->cause->id ?>"><?php echo h($product->cause->name); ?></span> </a> </p> <strong scope="row"><?php echo __('Name'); ?></strong> <p><?php echo h($product->name); ?></p> <strong scope="row"><?php echo __('Slug'); ?></strong> <p><?php echo h($product->slug); ?></p> </div> <div class="col-xs-6 col-lg-12"> <strong scope="row"><?php echo __('Price Min'); ?></strong> <p><?php echo $this->Number->format($product->price_min, ['precision' => 0, 'after' => ' Lei']); ?></p> <strong scope="row"><?php echo __('Price'); ?></strong> <p><?php echo $this->Number->format($product->price, ['precision' => 0, 'after' => ' Lei']); ?></p> <strong scope="row"><?php echo __('Stock'); ?></strong> <p><?php echo $this->Number->format($product->stock); ?></p> <strong scope="row"><?php echo __('Created'); ?></strong> <p><?php echo h($product->created); ?></p> <p> <label scope="row"><?php echo __('Is Price Fixed'); ?> <span> <i class="fa <?php echo ($product->is_price_fixed) ? 'fa-check-circle text-success ' : 'fa-times-circle text-danger'; ?>"></i> </span> </label> </p> <p> <label scope="row"><?php echo __('Is Active'); ?> <span> <i class="fa <?php echo ($product->is_active) ? 'fa-check-circle text-success ' : 'fa-times-circle text-danger'; ?>"></i> </span> </label> </p> <p> <strong scope="row"><?php echo __('Category'); ?> <div> <?php echo '<a href="' . $this->Url->build(['prefix' => 'Admin', 'controller' => 'Categories', 'action' => 'edit', $product->category_id]) . '"><span class="label label-success">' . $product->category->name . '</span> </a>'; ?> </div> </strong> </p> <p> <strong scope="row"><?php echo __('Tags'); ?> <div> <?php if ($product->tags) { foreach ($product->tags as $tag) { echo '<a href="' . $this->Url->build(['prefix' => 'Admin', 'controller' => 'Tags', 'action' => 'edit', $tag->id]) . '"><span class="label label-info">' . $tag->name . '</span> </a>'; } } ?> </div> </strong> </p> </div> </div>
Save
cmd:
run