mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
update transactions display
This commit is contained in:
parent
2af0efaa9f
commit
8fe36a1c2c
@ -34,7 +34,7 @@ class TransactionsController extends AppController
|
|||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$this->paginate = [
|
$this->paginate = [
|
||||||
'contain' => ['StateGroups', 'TransactionTypes']
|
'contain' => ['TransactionTypes']
|
||||||
];
|
];
|
||||||
$transactions = $this->paginate($this->Transactions);
|
$transactions = $this->paginate($this->Transactions);
|
||||||
|
|
||||||
|
|||||||
@ -30,28 +30,23 @@
|
|||||||
</nav>
|
</nav>
|
||||||
<div class="transactions index large-9 medium-8 columns content">
|
<div class="transactions index large-9 medium-8 columns content">
|
||||||
<h3><?= __('Transactions') ?></h3>
|
<h3><?= __('Transactions') ?></h3>
|
||||||
<table cellpadding="0" cellspacing="0">
|
<table cellpadding="0" cellspacing="0" style="table-layout: auto">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col"><?= $this->Paginator->sort('id') ?></th>
|
<th scope="col"><?= $this->Paginator->sort('id') ?></th>
|
||||||
<th scope="col"><?= $this->Paginator->sort('state_group_id') ?></th>
|
<th scope="col"><?= $this->Paginator->sort('memo') ?></th>
|
||||||
<th scope="col"><?= $this->Paginator->sort('transaction_type_id') ?></th>
|
<th scope="col"><?= $this->Paginator->sort('transaction_type_id') ?></th>
|
||||||
<th scope="col"><?= $this->Paginator->sort('received') ?></th>
|
<th scope="col"><?= $this->Paginator->sort('received') ?></th>
|
||||||
<th scope="col" class="actions"><?= __('Actions') ?></th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach ($transactions as $transaction): ?>
|
<?php foreach ($transactions as $transaction): ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?= $this->Number->format($transaction->id) ?></td>
|
<td><?= $this->Number->format($transaction->id) ?></td>
|
||||||
<td><?= $transaction->has('state_group') ? $this->Html->link($transaction->state_group->name, ['controller' => 'StateGroups', 'action' => 'view', $transaction->state_group->id]) : '' ?></td>
|
<td><?= h($transaction->memo) ?></td>
|
||||||
<td><?= $transaction->has('transaction_type') ? $this->Html->link($transaction->transaction_type->name, ['controller' => 'TransactionTypes', 'action' => 'view', $transaction->transaction_type->id]) : '' ?></td>
|
<td><?= $transaction->has('transaction_type') ? $this->Html->link(__($transaction->transaction_type->name), ['controller' => 'TransactionTypes', 'action' => 'view', $transaction->transaction_type->id]) : '' ?></td>
|
||||||
<td><?= h($transaction->received) ?></td>
|
<td><?= h($transaction->received) ?></td>
|
||||||
<td class="actions">
|
|
||||||
<?= $this->Html->link(__('View'), ['action' => 'view', $transaction->id]) ?>
|
|
||||||
<?= $this->Html->link(__('Edit'), ['action' => 'edit', $transaction->id]) ?>
|
|
||||||
<?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $transaction->id], ['confirm' => __('Are you sure you want to delete # {0}?', $transaction->id)]) ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user