edit.ctp
1.13 KB
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Form->postLink(
__('Delete'),
['action' => 'delete', $category->id],
['confirm' => __('Are you sure you want to delete # {0}?', $category->id)]
)
?></li>
<li><?= $this->Html->link(__('List Categories'), ['action' => 'index']) ?></li>
<li><?= $this->Html->link(__('List Sur Categories'), ['controller' => 'SurCategories', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Sur Category'), ['controller' => 'SurCategories', 'action' => 'add']) ?></li>
</ul>
</nav>
<div class="categories form large-9 medium-8 columns content">
<?= $this->Form->create($category) ?>
<fieldset>
<legend><?= __('Edit Category') ?></legend>
<?php
echo $this->Form->input('nom');
echo $this->Form->input('sur_categorie_id', ['options' => $surCategories]);
?>
</fieldset>
<?= $this->Form->button(__('Submit')) ?>
<?= $this->Form->end() ?>
</div>