41 lines
1.7 KiB
PHP
41 lines
1.7 KiB
PHP
<?php
|
|
/**
|
|
* @var \App\View\AppView $this
|
|
* @var \Cake\Datasource\EntityInterface $deAccount
|
|
* @var string[]|\Cake\Collection\CollectionInterface $deAccountTypes
|
|
* @var string[]|\Cake\Collection\CollectionInterface $parentDeAccounts
|
|
*/
|
|
?>
|
|
<div class="row">
|
|
<aside class="column">
|
|
<div class="side-nav">
|
|
<h4 class="heading"><?= __('Actions') ?></h4>
|
|
<?= $this->Form->postLink(
|
|
__('Delete'),
|
|
['action' => 'delete', $deAccount->id],
|
|
['confirm' => __('Are you sure you want to delete # {0}?', $deAccount->id), 'class' => 'side-nav-item']
|
|
) ?>
|
|
<?= $this->Html->link(__('List De Accounts'), ['action' => 'index'], ['class' => 'side-nav-item']) ?>
|
|
</div>
|
|
</aside>
|
|
<div class="column column-80">
|
|
<div class="deAccounts form content">
|
|
<?= $this->Form->create($deAccount) ?>
|
|
<fieldset>
|
|
<legend><?= __('Edit De Account') ?></legend>
|
|
<?php
|
|
echo $this->Form->control('account_number');
|
|
echo $this->Form->control('parent_id', ['options' => $parentDeAccounts, 'empty' => true]);
|
|
echo $this->Form->control('account_type_code', ['options' => $deAccountTypes]);
|
|
echo $this->Form->control('name');
|
|
echo $this->Form->control('account_limit');
|
|
echo $this->Form->control('can_credit');
|
|
echo $this->Form->control('can_debit');
|
|
?>
|
|
</fieldset>
|
|
<?= $this->Form->button(__('Submit')) ?>
|
|
<?= $this->Form->end() ?>
|
|
</div>
|
|
</div>
|
|
</div>
|