Files
CakePHP_Repozytorium/templates/Tools/view.php
Patryk_Turbakiewicz ab9076a87b
Some checks failed
Mark stale issues and pull requests / stale (push) Has been cancelled
Initial commit for main repository
2025-11-28 14:33:55 +01:00

45 lines
1.8 KiB
PHP

<div class="row">
<aside class="column">
<div class="side-nav">
<h4 class="heading"><?= __('Operacje') ?></h4>
<?= $this->Html->link(__('Edytuj narzędzie'), ['action' => 'edit', $tool->id], ['class' => 'side-nav-item']) ?>
<?= $this->Form->postLink(__('Usuń'), ['action' => 'delete', $tool->id], ['confirm' => __('Na pewno usunąć {0}?', $tool->name), 'class' => 'side-nav-item']) ?>
<?= $this->Html->link(__('Powrót'), ['action' => 'index'], ['class' => 'side-nav-item']) ?>
<?= $this->Html->link(__('Dodaj'), ['action' => 'add'], ['class' => 'side-nav-item']) ?>
</div>
</aside>
<div class="column column-80">
<div class="tools view content">
<h3><?= h($tool->name) ?></h3>
<table>
<tr>
<th><?= __('Nazwa') ?></th>
<td><?= h($tool->name) ?></td>
</tr>
<tr>
<th><?= __('Ilość') ?></th>
<td><?= $this->Number->format($tool->quantity) ?></td>
</tr>
<tr>
<th><?= __('Utworzono') ?></th>
<td><?= h($tool->created) ?></td>
</tr>
<tr>
<th><?= __('Zmodyfikowano') ?></th>
<td><?= h($tool->modified) ?></td>
</tr>
<tr>
<th><?= __('Aktywne') ?></th>
<td><?= $tool->active ? __('Tak') : __('Nie'); ?></td>
</tr>
</table>
<div class="text">
<strong><?= __('Opis') ?></strong>
<blockquote>
<?= $this->Text->autoParagraph(h($tool->description)); ?>
</blockquote>
</div>
</div>
</div>
</div>