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