/
var
/
www
/
vhosts
/
ihelp.ro
/
httpdocs
/
templates
/
Admin
/
Sponsors
/
/var/www/vhosts/ihelp.ro/httpdocs/templates/Admin/Sponsors
mkdir
upload
Name
Size
Mode
Actions
add.php
1335
0644
edit
dl
rm
edit.php
1571
0644
edit
dl
rm
index.php
2546
0644
edit
dl
rm
view.php
4150
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/httpdocs/templates/Admin/Sponsors/view.php
(4150B)
<section class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-12"> <h1 class="float-left"><?php echo __('Sponsor') . ' ' . $sponsor->id; ?></h1> <ol class="breadcrumb float-right"> <li class="breadcrumb-item active mr-3" aria-current="page"> <a class="" href="<?php echo $this->Url->build(['action' => 'index']); ?>"><i class="fas fa-home"></i> <?php echo __('Home'); ?></a></li> <li> <?= $this->Html->link( $this->Html->tag('i', '', ['class' => 'fas fa-trash']), ['action' => 'delete', $sponsor->id], [ 'confirm' => __('Are you sure you want to delete # {0}?', $sponsor->id), 'class' => 'btn btn-danger btn-xs', 'escape' => false ] ) ?> </li> </ol> </div> </div> </div> </section> <section class="content"> <div class="container-fluid"> <div class="row"> <div class="col-lg-12"> <div class="card"> <div class="card-body"> <?php if (!empty($sponsor->id)) : ?> <?php echo $this->cell('Admin/InfoSponsorBlock', [$sponsor->id]); ?> <?php endif; ?> </div> </div> </div> </div> </div> </section> <section class="content"> <div class="container-fluid"> <div class="row"> <div class="col-lg-12"> <div class="card"> <h4 class="d-flex justify-content-between mx-3 align-items-end mt-3"> <?php echo __('Sponsor activities'); ?> <div class="float-right"><?php echo $this->Html->link(__('New'), ['controller' => 'SponsorsActivities', 'action' => 'add', '?' => ['sponsor_id' => $sponsor->id]], ['class' => 'btn btn-success btn-xs']); ?></div> </h4> <div class="card-body table-responsive 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('name'); ?></th> <th scope="col"><?php echo $this->Paginator->sort('value', ['label' => _('_VALUE')]); ?></th> <th scope="col"><?php echo $this->Paginator->sort('label', ['label' => _('_LABEL')]); ?></th> <th scope="col" class="actions text-center"><?php echo __('Actions'); ?></th> </tr> </thead> <tbody> <?php foreach ($sponsor->sponsors_activities as $activity) : ?> <tr> <td><?php echo $this->Number->format($activity['id']); ?></td> <td><?php echo h($activity['name']); ?></td> <td><?php echo h($activity['value']); ?></td> <td><?php echo h($activity['label']); ?></td> <td class="actions text-center"> <?php echo $this->Html->link(__('Edit'), ['controller' => 'SponsorsActivities', 'action' => 'edit', $activity['id']], ['class' => 'btn btn-warning btn-xs']);?> <?php echo $this->Form->postLink(__('Delete'), ['controller' => 'SponsorsActivities', 'action' => 'delete', $activity['id']], ['confirm' => __('Are you sure you want to delete # {0}?', $activity['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