Form->create($tool) ?>
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 ]); ?>
Form->button(__('Zapisz')) ?> Form->end() ?>