Initial commit: CakePHP project
Some checks failed
Mark stale issues and pull requests / stale (push) Has been cancelled
Some checks failed
Mark stale issues and pull requests / stale (push) Has been cancelled
This commit is contained in:
50
templates/Tools/view.php
Normal file
50
templates/Tools/view.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<?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->id), '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>
|
||||
Reference in New Issue
Block a user