53 lines
2.5 KiB
PHP
53 lines
2.5 KiB
PHP
<?php
|
|
/**
|
|
* @var \App\View\AppView $this
|
|
* @var iterable<\Cake\Datasource\EntityInterface> $deAccountTemplates
|
|
*/
|
|
?>
|
|
<div class="deAccountTemplates index content">
|
|
<?= $this->Html->link(__('New De Account Template'), ['action' => 'add'], ['class' => 'button float-right']) ?>
|
|
<h3><?= __('De Account Templates') ?></h3>
|
|
<div class="table-responsive">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th><?= $this->Paginator->sort('id') ?></th>
|
|
<th><?= $this->Paginator->sort('name') ?></th>
|
|
<th><?= $this->Paginator->sort('deleted') ?></th>
|
|
<th class="actions"><?= __('Actions') ?></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($deAccountTemplates as $deAccountTemplate): ?>
|
|
<tr>
|
|
<td><?= $this->Number->format($deAccountTemplate->id) ?></td>
|
|
<td><?= h($deAccountTemplate->name) ?></td>
|
|
<td><?= h($deAccountTemplate->deleted) ?></td>
|
|
<td class="actions">
|
|
<?= $this->Html->link(__('View'), ['action' => 'view', $deAccountTemplate->id]) ?>
|
|
<?= $this->Html->link(__('Edit'), ['action' => 'edit', $deAccountTemplate->id]) ?>
|
|
<?= $this->Form->postLink(__('Import'), [
|
|
'action' => 'select',
|
|
$deAccountTemplate->id,
|
|
], [
|
|
'confirm' => __('Are you sure you want to import Accounts from Accounts Template "{0}"?', $deAccountTemplate->name),
|
|
]); ?>
|
|
<?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $deAccountTemplate->id], ['confirm' => __('Are you sure you want to delete # {0}?', $deAccountTemplate->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>
|