59 lines
1.4 KiB
PHP
59 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* @var \App\View\AppView $this
|
|
* @var \App\Model\Entity\Tool $tool
|
|
*/
|
|
?>
|
|
<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><?= $tool->created ? $tool->created->i18nFormat('dd.MM.yyyy HH:mm') : '' ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?= __('Zmodyfikowano') ?></th>
|
|
<td><?= $tool->modified ? $tool->modified->i18nFormat('dd.MM.yyyy HH:mm') : '' ?></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>
|