categorize.phtml 620 B

1234567891011121314
  1. <form method="post" action="">
  2. <h1>Gérer les catégories</h1>
  3. <?php $i = 0; foreach ($this->categories as $cat) { $i++; ?>
  4. <label for="cat_<?php echo $cat->id (); ?>">Catégorie n°<?php echo $i; ?></label>
  5. <input type="text" id="cat_<?php echo $cat->id (); ?>" name="categories[]" value="<?php echo $cat->name (); ?>" />
  6. <input type="hidden" name="ids[]" value="<?php echo $cat->id (); ?>" />
  7. <?php } ?>
  8. <label for="new_category">Ajouter une catégorie</label>
  9. <input type="text" id="new_category" name="new_category" placeholder="Nouvelle catégorie" />
  10. <input type="submit" value="Valider" />
  11. </form>