Initial commit for main repository
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:
37
templates/Tools/add.php
Normal file
37
templates/Tools/add.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<div class="row">
|
||||
<aside class="column">
|
||||
<div class="side-nav">
|
||||
<h4 class="heading"><?= __('Operacje') ?></h4>
|
||||
<?= $this->Html->link(__('Powrót'), ['action' => 'index'], ['class' => 'side-nav-item']) ?>
|
||||
</div>
|
||||
</aside>
|
||||
<div class="column column-80">
|
||||
<div class="tools form content">
|
||||
<?= $this->Form->create($tool) ?>
|
||||
<fieldset>
|
||||
<legend><?= __('Dodawanie narzędzia') ?></legend>
|
||||
<?php
|
||||
echo $this->Form->control('name', [
|
||||
'label' => 'Nazwa',
|
||||
'placeholder' => 'Wpisz nazwę'
|
||||
]);
|
||||
echo $this->Form->control('description', [
|
||||
'label' => 'Opis',
|
||||
'placeholder' => 'Dowolny opis'
|
||||
]);
|
||||
echo $this->Form->control('quantity', [
|
||||
'label' => 'Ilość',
|
||||
'default' => 1
|
||||
]);
|
||||
echo $this->Form->control('active', [
|
||||
'label' => 'Aktywny',
|
||||
'default' => true
|
||||
]);
|
||||
?>
|
||||
</fieldset>
|
||||
<?= $this->Form->button(__('Zapisz')) ?>
|
||||
<?= $this->Form->end() ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user