1
|
|
|
<?php |
2
|
|
|
/** |
|
|
|
|
3
|
|
|
* @var \App\View\AppView $this |
|
|
|
|
4
|
|
|
* @var \App\Model\Entity\Asset[]|\Cake\Collection\CollectionInterface $assets |
|
|
|
|
5
|
|
|
*/ |
|
|
|
|
6
|
|
|
?> |
7
|
|
|
<nav class="large-3 medium-4 columns" id="actions-sidebar"> |
|
|
|
|
8
|
|
|
<ul class="side-nav"> |
9
|
|
|
<li class="heading"><?= __('Actions') ?></li> |
10
|
|
|
<li><?= $this->Html->link(__('New Asset'), ['action' => 'add']) ?></li> |
11
|
|
|
</ul> |
12
|
|
|
</nav> |
13
|
|
|
<div class="assets index large-9 medium-8 columns content"> |
14
|
|
|
<h3><?= __('Assets') ?></h3> |
15
|
|
|
<table cellpadding="0" cellspacing="0"> |
16
|
|
|
<thead> |
17
|
|
|
<tr> |
18
|
|
|
<th scope="col"><?= $this->Paginator->sort('id') ?></th> |
19
|
|
|
<th scope="col"><?= $this->Paginator->sort('name') ?></th> |
20
|
|
|
<th scope="col"><?= $this->Paginator->sort('created') ?></th> |
21
|
|
|
<th scope="col"><?= $this->Paginator->sort('modified') ?></th> |
22
|
|
|
<th scope="col" class="actions"><?= __('Actions') ?></th> |
23
|
|
|
</tr> |
24
|
|
|
</thead> |
25
|
|
|
<tbody> |
26
|
|
|
<?php foreach ($assets as $asset): ?> |
|
|
|
|
27
|
|
|
<tr> |
28
|
|
|
<td><?= $this->Number->format($asset->id) ?></td> |
29
|
|
|
<td><?= h($asset->name) ?></td> |
30
|
|
|
<td><?= h($asset->created) ?></td> |
31
|
|
|
<td><?= h($asset->modified) ?></td> |
32
|
|
|
<td class="actions"> |
33
|
|
|
<?= $this->Html->link(__('View'), ['action' => 'view', $asset->id]) ?> |
34
|
|
|
<?= $this->Html->link(__('Edit'), ['action' => 'edit', $asset->id]) ?> |
35
|
|
|
<?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $asset->id], ['confirm' => __('Are you sure you want to delete # {0}?', $asset->id)]) ?> |
36
|
|
|
</td> |
37
|
|
|
</tr> |
38
|
|
|
<?php endforeach; ?> |
39
|
|
|
</tbody> |
40
|
|
|
</table> |
41
|
|
|
<div class="paginator"> |
42
|
|
|
<ul class="pagination"> |
43
|
|
|
<?= $this->Paginator->first('<< ' . __('first')) ?> |
44
|
|
|
<?= $this->Paginator->prev('< ' . __('previous')) ?> |
45
|
|
|
<?= $this->Paginator->numbers() ?> |
46
|
|
|
<?= $this->Paginator->next(__('next') . ' >') ?> |
47
|
|
|
<?= $this->Paginator->last(__('last') . ' >>') ?> |
48
|
|
|
</ul> |
49
|
|
|
<p><?= $this->Paginator->counter('Page {{page}} of {{pages}}, showing {{current}} record(s) out of {{count}} total') ?></p> |
50
|
|
|
</div> |
51
|
|
|
</div> |
52
|
|
|
|