/
var
/
www
/
vhosts
/
ihelp.ro
/
httpdocs
/
templates
/
Admin
/
Categories
/
/var/www/vhosts/ihelp.ro/httpdocs/templates/Admin/Categories
mkdir
upload
Name
Size
Mode
Actions
add.php
1480
0644
edit
dl
rm
edit.php
1492
0644
edit
dl
rm
index.php
3594
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/httpdocs/templates/Admin/Categories/index.php
(3594B)
<!-- Content Header (Page header) --> <section class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-lg-12"> <h1> <?php echo __('Categories'); ?> <div class="float-right"><?php echo $this->Html->link(__('New'), ['action' => 'add'], ['class' => 'btn btn-success btn-xs']); ?></div> <div class="float-right mr-2"><?php echo $this->Form->postLink(__('Recover'), ['action' => 'recover'], ['confirm' => __('Are you sure you want to Recover the categories?'), 'class' => 'btn btn-danger btn-xs']); ?></div> </h1> </div> </div> </div><!-- /.container-fluid --> </section> <!-- Main content --> <section class="content"> <div class="container-fluid"> <div class="row"> <div class="col-lg-12"> <div class="card"> <!-- /.box-header --> <div class="card-body table-responsive p-0"> <table class="table table-hover text-nowrap"> <thead> <tr> <th scope="col"><?php echo $this->Paginator->sort('id'); ?></th> <th scope="col"><?php echo $this->Paginator->sort('parent_id', ['label' => 'Category']); ?></th> <th scope="col"><?php echo $this->Paginator->sort('name'); ?></th> <th scope="col"><?php echo $this->Paginator->sort('slug'); ?></th> <th scope="col"><?php echo $this->Paginator->sort('product_count'); ?></th> <th scope="col"><?php echo $this->Paginator->sort('is_active'); ?></th> <th scope="col" class="actions text-center"><?php echo __('Actions'); ?></th> </tr> </thead> <tbody> <?php foreach ($categories as $category) : ?> <tr> <td><?php echo $this->Number->format($category->id); ?></td> <td><?php echo ($category->parent_id) ? $category->parent_category->name : 'MAIN GATEGORY'; ?></td> <td><?php echo h($category->name); ?></td> <td><?php echo h($category->slug); ?></td> <td><?php echo $category->parent_id ? $category->product_count : ''; ?></td> <td><?php echo ($category->is_active) ? '<i class="fa fa-check-circle text-success" title="Active"></i>' : '<i class="fa fa-times-circle text-danger" title="Inactive"></i>'; ?></td> <td class="actions text-center"> <?php echo $this->Html->link(null, ['action' => 'changePosition', 'moveup', $category->id], ['class' => ' fas fa-arrow-alt-circle-up fa-1x']); ?> <?php echo $this->Html->link(null, ['action' => 'changePosition', 'movedown', $category->id], ['class' => 'fas fa-arrow-alt-circle-down fa-1x']); ?> <?php echo $this->Html->link(__('Edit'), ['action' => 'edit', $category->id], ['class' => 'btn btn-warning btn-xs']); ?> <?php echo $this->Form->postLink(__('Delete'), ['action' => 'delete', $category->id], ['confirm' => __('Are you sure you want to delete # {0}?', $category->id), 'class' => 'btn btn-danger btn-xs']); ?> </td> </tr> <?php endforeach; ?> </tbody> </table> </div> <!-- /.box-body --> </div> <!-- /.box --> </div> </div> <div class="row"> <div class="col-sm-12"> <?php echo $this->element('paginator'); ?> </div> </div> </div> </section>
Save
cmd:
run