49 lines
2.5 KiB
PHP
49 lines
2.5 KiB
PHP
|
<?php
|
||
|
/**
|
||
|
* @var \App\View\AppView $this
|
||
|
* @var iterable<\Cake\Datasource\EntityInterface> $deJournalEntries
|
||
|
*/
|
||
|
?>
|
||
|
<div class="deJournalEntries index content">
|
||
|
<?= $this->Html->link(__('New De Journal Entry'), ['action' => 'add'], ['class' => 'button float-right']) ?>
|
||
|
<h3><?= __('De Journal Entries') ?></h3>
|
||
|
<div class="table-responsive">
|
||
|
<table>
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th><?= $this->Paginator->sort('id') ?></th>
|
||
|
<th><?= $this->Paginator->sort('de_journal_id') ?></th>
|
||
|
<th><?= $this->Paginator->sort('user_id') ?></th>
|
||
|
<th><?= $this->Paginator->sort('created') ?></th>
|
||
|
<th class="actions"><?= __('Actions') ?></th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<?php foreach ($deJournalEntries as $deJournalEntry): ?>
|
||
|
<tr>
|
||
|
<td><?= $this->Number->format($deJournalEntry->id) ?></td>
|
||
|
<td><?= $deJournalEntry->hasValue('de_journal') ? $this->Html->link($deJournalEntry->de_journal->name, ['controller' => 'DeJournals', 'action' => 'view', $deJournalEntry->de_journal->id]) : '' ?></td>
|
||
|
<td><?= $deJournalEntry->hasValue('user') ? $this->Html->link($deJournalEntry->user->first_name, ['controller' => 'Users', 'action' => 'view', $deJournalEntry->user->id]) : '' ?></td>
|
||
|
<td><?= h($deJournalEntry->created) ?></td>
|
||
|
<td class="actions">
|
||
|
<?= $this->Html->link(__('View'), ['action' => 'view', $deJournalEntry->id]) ?>
|
||
|
<?= $this->Html->link(__('Edit'), ['action' => 'edit', $deJournalEntry->id]) ?>
|
||
|
<?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $deJournalEntry->id], ['confirm' => __('Are you sure you want to delete # {0}?', $deJournalEntry->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>
|