categorize.phtml 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. <?php $this->partial ('aside_configure'); ?>
  2. <div class="post">
  3. <form method="post" action="<?php echo _url ('configure', 'categorize'); ?>">
  4. <legend>Gestion des catégories</legend>
  5. <?php $i = 0; foreach ($this->categories as $cat) { $i++; ?>
  6. <div class="form-group">
  7. <label class="group-name" for="cat_<?php echo $cat->id (); ?>">Catégorie n°<?php echo $i; ?></label>
  8. <div class="group-controls">
  9. <input type="text" id="cat_<?php echo $cat->id (); ?>" name="categories[]" value="<?php echo $cat->name (); ?>" />
  10. <input type="hidden" name="ids[]" value="<?php echo $cat->id (); ?>" />
  11. </div>
  12. </div>
  13. <?php } ?>
  14. <div class="form-group">
  15. <label class="group-name" for="new_category">Ajouter une catégorie</label>
  16. <div class="group-controls">
  17. <input type="text" id="new_category" name="new_category" placeholder="Nouvelle catégorie" />
  18. </div>
  19. </div>
  20. <div class="form-group form-actions">
  21. <div class="group-controls">
  22. <button type="submit" class="btn btn-important">Sauvegarder</button>
  23. <button type="reset" class="btn">Annuler</button>
  24. </div>
  25. </div>
  26. </form>
  27. </div>