80 lines
4.1 KiB
PHP
80 lines
4.1 KiB
PHP
<?php
|
|
/**
|
|
* @var \App\View\AppView $this
|
|
* @var \Cake\Datasource\EntityInterface $deJournal
|
|
*/
|
|
?>
|
|
<div class="row">
|
|
<aside class="column">
|
|
<div class="side-nav">
|
|
<h4 class="heading"><?= __('Actions') ?></h4>
|
|
<?= $this->Html->link(__('Edit De Journal'), ['action' => 'edit', $deJournal->id], ['class' => 'side-nav-item']) ?>
|
|
<?= $this->Form->postLink(__('Delete De Journal'), ['action' => 'delete', $deJournal->id], ['confirm' => __('Are you sure you want to delete # {0}?', $deJournal->id), 'class' => 'side-nav-item']) ?>
|
|
<?= $this->Html->link(__('List De Journals'), ['action' => 'index'], ['class' => 'side-nav-item']) ?>
|
|
<?= $this->Html->link(__('New De Journal'), ['action' => 'add'], ['class' => 'side-nav-item']) ?>
|
|
</div>
|
|
</aside>
|
|
<div class="column column-80">
|
|
<div class="deJournals view content">
|
|
<h3><?= h($deJournal->name) ?></h3>
|
|
<table>
|
|
<tr>
|
|
<th><?= __('Name') ?></th>
|
|
<td><?= h($deJournal->name) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('Short Code') ?></th>
|
|
<td><?= h($deJournal->short_code) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('De Journal Type Code') ?></th>
|
|
<td><?= h($deJournal->de_journal_type_code) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('Id') ?></th>
|
|
<td><?= $this->Number->format($deJournal->id) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('Default Account Number Credit') ?></th>
|
|
<td><?= $deJournal->default_account_number_credit === null ? '' : $this->Number->format($deJournal->default_account_number_credit) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('Default Account Number Debit') ?></th>
|
|
<td><?= $deJournal->default_account_number_debit === null ? '' : $this->Number->format($deJournal->default_account_number_debit) ?></td>
|
|
</tr>
|
|
</table>
|
|
<div class="related">
|
|
<h4><?= __('Related De Journal Entries') ?></h4>
|
|
<?php if (!empty($deJournal->de_journal_entries)) : ?>
|
|
<div class="table-responsive">
|
|
<table>
|
|
<tr>
|
|
<th><?= __('Id') ?></th>
|
|
<th><?= __('De Journal Id') ?></th>
|
|
<th><?= __('User Id') ?></th>
|
|
<th><?= __('Created') ?></th>
|
|
<th><?= __('Notes') ?></th>
|
|
<th class="actions"><?= __('Actions') ?></th>
|
|
</tr>
|
|
<?php foreach ($deJournal->de_journal_entries as $deJournalEntries) : ?>
|
|
<tr>
|
|
<td><?= h($deJournalEntries->id) ?></td>
|
|
<td><?= h($deJournalEntries->de_journal_id) ?></td>
|
|
<td><?= h($deJournalEntries->user_id) ?></td>
|
|
<td><?= h($deJournalEntries->created) ?></td>
|
|
<td><?= h($deJournalEntries->notes) ?></td>
|
|
<td class="actions">
|
|
<?= $this->Html->link(__('View'), ['controller' => 'DeJournalEntries', 'action' => 'view', $deJournalEntries->id]) ?>
|
|
<?= $this->Html->link(__('Edit'), ['controller' => 'DeJournalEntries', 'action' => 'edit', $deJournalEntries->id]) ?>
|
|
<?= $this->Form->postLink(__('Delete'), ['controller' => 'DeJournalEntries', 'action' => 'delete', $deJournalEntries->id], ['confirm' => __('Are you sure you want to delete # {0}?', $deJournalEntries->id)]) ?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</table>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|