CakeAccounting/templates/DeAccountTemplates/view.php

80 lines
4.4 KiB
PHP
Raw Normal View History

2025-08-09 21:07:39 +00:00
<?php
/**
* @var \App\View\AppView $this
* @var \Cake\Datasource\EntityInterface $deAccountTemplate
*/
?>
<div class="row">
<aside class="column">
<div class="side-nav">
<h4 class="heading"><?= __('Actions') ?></h4>
<?= $this->Html->link(__('Edit De Account Template'), ['action' => 'edit', $deAccountTemplate->id], ['class' => 'side-nav-item']) ?>
<?= $this->Form->postLink(__('Delete De Account Template'), ['action' => 'delete', $deAccountTemplate->id], ['confirm' => __('Are you sure you want to delete # {0}?', $deAccountTemplate->id), 'class' => 'side-nav-item']) ?>
<?= $this->Html->link(__('List De Account Templates'), ['action' => 'index'], ['class' => 'side-nav-item']) ?>
<?= $this->Html->link(__('New De Account Template'), ['action' => 'add'], ['class' => 'side-nav-item']) ?>
</div>
</aside>
<div class="column column-80">
<div class="deAccountTemplates view content">
<h3><?= h($deAccountTemplate->name) ?></h3>
<table>
<tr>
<th><?= __('Name') ?></th>
<td><?= h($deAccountTemplate->name) ?></td>
</tr>
<tr>
<th><?= __('Id') ?></th>
<td><?= $this->Number->format($deAccountTemplate->id) ?></td>
</tr>
<tr>
<th><?= __('Deleted') ?></th>
<td><?= h($deAccountTemplate->deleted) ?></td>
</tr>
</table>
<div class="related">
<h4><?= __('Related De Templated Accounts') ?></h4>
<?php if (!empty($deAccountTemplate->de_templated_accounts)) : ?>
<div class="table-responsive">
<table>
<tr>
<th><?= __('Id') ?></th>
<th><?= __('Account Number') ?></th>
<th><?= __('Account Template Id') ?></th>
<th><?= __('Parent Id') ?></th>
<th><?= __('Lft') ?></th>
<th><?= __('Rght') ?></th>
<th><?= __('Account Type Code') ?></th>
<th><?= __('Account Limit') ?></th>
<th><?= __('Can Credit') ?></th>
<th><?= __('Can Debit') ?></th>
<th><?= __('Name') ?></th>
<th class="actions"><?= __('Actions') ?></th>
</tr>
<?php foreach ($deAccountTemplate->de_templated_accounts as $deTemplatedAccounts) : ?>
<tr>
<td><?= h($deTemplatedAccounts->id) ?></td>
<td><?= h($deTemplatedAccounts->account_number) ?></td>
<td><?= h($deTemplatedAccounts->account_template_id) ?></td>
<td><?= h($deTemplatedAccounts->parent_id) ?></td>
<td><?= h($deTemplatedAccounts->lft) ?></td>
<td><?= h($deTemplatedAccounts->rght) ?></td>
<td><?= h($deTemplatedAccounts->account_type_code) ?></td>
<td><?= h($deTemplatedAccounts->account_limit) ?></td>
<td><?= h($deTemplatedAccounts->can_credit) ?></td>
<td><?= h($deTemplatedAccounts->can_debit) ?></td>
<td><?= h($deTemplatedAccounts->name) ?></td>
<td class="actions">
<?= $this->Html->link(__('View'), ['controller' => 'DeTemplatedAccounts', 'action' => 'view', $deTemplatedAccounts->id]) ?>
<?= $this->Html->link(__('Edit'), ['controller' => 'DeTemplatedAccounts', 'action' => 'edit', $deTemplatedAccounts->id]) ?>
<?= $this->Form->postLink(__('Delete'), ['controller' => 'DeTemplatedAccounts', 'action' => 'delete', $deTemplatedAccounts->id], ['confirm' => __('Are you sure you want to delete # {0}?', $deTemplatedAccounts->id)]) ?>
</td>
</tr>
<?php endforeach; ?>
</table>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>