1
|
|
|
<div class="col-xs-12"> |
|
|
|
|
2
|
|
|
<div class="panel panel-default"> |
3
|
|
|
<div class="panel-heading"> |
4
|
|
|
<div class="row clearfix"> |
5
|
|
|
<div class="col-xs-3 col-md-3"> |
6
|
|
|
<h4><?= __('Tickets') ?></h4> |
7
|
|
|
</div> |
8
|
|
|
<div class="col-xs-9"><?= $this->Html->link(__('<i class="fa fa-plus-circle" aria-hidden="true"></i> New Ticket '), ['action' => 'add'], ['escape' => false, 'class' => 'btn btn-primary']) ?></div> |
9
|
|
|
</div> |
10
|
|
|
</div> |
11
|
|
|
<table class="table table-condensed"> |
12
|
|
|
<thead> |
13
|
|
|
<tr> |
14
|
|
|
<th scope="col"><?= $this->Paginator->sort('id') ?></th> |
15
|
|
|
<th scope="col"><?= $this->Paginator->sort('title') ?></th> |
16
|
|
|
<th scope="col"><?= $this->Paginator->sort('tickettype_id', 'Type of ticket') ?></th> |
17
|
|
|
<th scope="col"><?= $this->Paginator->sort('ticketstatus_id', 'Status') ?></th> |
18
|
|
|
<th scope="col"><?= $this->Paginator->sort('created') ?></th> |
19
|
|
|
<th scope="col"><?= $this->Paginator->sort('modified') ?></th> |
20
|
|
|
<th scope="col" class="actions"><?= __('Actions') ?></th> |
21
|
|
|
</tr> |
22
|
|
|
</thead> |
23
|
|
|
<tbody> |
24
|
|
|
<?php foreach ($tickets as $ticket): ?> |
|
|
|
|
25
|
|
|
<tr> |
26
|
|
|
<td><?= $this->Number->format($ticket->id) ?></td> |
27
|
|
|
<td><?= $this->Html->link(h(h($ticket->title)), ['action' => 'view', $ticket->id]) ?></td> |
28
|
|
|
<td><?= h($ticket->tickettype['name']) ?></td> |
29
|
|
|
<td><?= h($ticket->ticketstatus['name']) ?></td> |
30
|
|
|
<td><?= h($ticket->created) ?></td> |
31
|
|
|
<td><?= h($ticket->modified) ?></td> |
32
|
|
|
<td class="actions"> |
33
|
|
|
<?= $this->Html->link(__('Edit'), ['action' => 'edit', $ticket->id]) ?> |
34
|
|
|
<?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $ticket->id], ['confirm' => __('Are you sure you want to delete # {0}?', $ticket->id)]) ?> |
35
|
|
|
</td> |
36
|
|
|
</tr> |
37
|
|
|
<?php endforeach; ?> |
38
|
|
|
</tbody> |
39
|
|
|
</table> |
40
|
|
|
<div class="panel-footer"> |
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
|
|
|
</div> |
53
|
|
|
</div> |
|
|
|
|