/
var
/
www
/
vhosts
/
ihelp.ro
/
_OLD
/
templates
/
Causes
/
/var/www/vhosts/ihelp.ro/_OLD/templates/Causes
mkdir
upload
Name
Size
Mode
Actions
add.php
1222
0644
edit
dl
rm
edit.php
1636
0644
edit
dl
rm
index.php
3460
0644
edit
dl
rm
update.php
0
0644
edit
dl
rm
view.php
4968
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/_OLD/templates/Causes/index.php
(3460B)
<?php /** * @var \App\View\AppView $this * @var \App\Model\Entity\Cause[]|\Cake\Collection\CollectionInterface $causes */ ?> <div class="causes index content"> <?= $this->Html->link(__('New Cause'), ['action' => 'add'], ['class' => 'button float-right']) ?> <h3><?= __('Causes') ?></h3> <div class="table-responsive"> <table> <thead> <tr> <th><?= $this->Paginator->sort('id') ?></th> <th><?= $this->Paginator->sort('uuid') ?></th> <th><?= $this->Paginator->sort('user_id') ?></th> <th><?= $this->Paginator->sort('cause_image_id') ?></th> <th><?= $this->Paginator->sort('name') ?></th> <th><?= $this->Paginator->sort('slug') ?></th> <th><?= $this->Paginator->sort('description') ?></th> <th><?= $this->Paginator->sort('donation_amount') ?></th> <th><?= $this->Paginator->sort('date_start') ?></th> <th><?= $this->Paginator->sort('date_end') ?></th> <th><?= $this->Paginator->sort('is_active') ?></th> <th><?= $this->Paginator->sort('created') ?></th> <th><?= $this->Paginator->sort('modified') ?></th> <th class="actions"><?= __('Actions') ?></th> </tr> </thead> <tbody> <?php foreach ($causes as $cause): ?> <tr> <td><?= $this->Number->format($cause->id) ?></td> <td><?= h($cause->uuid) ?></td> <td><?= $cause->has('user') ? $this->Html->link($cause->user->id, ['controller' => 'Users', 'action' => 'view', $cause->user->id]) : '' ?></td> <td><?= $this->Number->format($cause->cause_image_id) ?></td> <td><?= h($cause->name) ?></td> <td><?= h($cause->slug) ?></td> <td><?= h($cause->description) ?></td> <td><?= h($cause->donation_amount) ?></td> <td><?= h($cause->date_start) ?></td> <td><?= h($cause->date_end) ?></td> <td><?= h($cause->is_active) ?></td> <td><?= h($cause->created) ?></td> <td><?= h($cause->modified) ?></td> <td class="actions"> <?= $this->Html->link(__('View'), ['action' => 'view', $cause->id]) ?> <?= $this->Html->link(__('Edit'), ['action' => 'edit', $cause->id]) ?> <?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $cause->id], ['confirm' => __('Are you sure you want to delete # {0}?', $cause->id)]) ?> </td> </tr> <?php endforeach; ?> </tbody> </table> </div> <div class="paginator"> <ul class="pagination"> <?= $this->Paginator->first('<< ' . __('first')) ?> <?= $this->Paginator->prev('< ' . __('previous')) ?> <?= $this->Paginator->numbers() ?> <?= $this->Paginator->next(__('next') . ' >') ?> <?= $this->Paginator->last(__('last') . ' >>') ?> </ul> <p><?= $this->Paginator->counter(__('Page {{page}} of {{pages}}, showing {{current}} record(s) out of {{count}} total')) ?></p> </div> </div>
Save
cmd:
run