diff options
Diffstat (limited to 'app/views/configure/categorize.phtml')
| -rw-r--r-- | app/views/configure/categorize.phtml | 37 |
1 files changed, 25 insertions, 12 deletions
diff --git a/app/views/configure/categorize.phtml b/app/views/configure/categorize.phtml index 567859ea5..5d649a93a 100644 --- a/app/views/configure/categorize.phtml +++ b/app/views/configure/categorize.phtml @@ -1,18 +1,31 @@ <?php $this->partial ('aside_configure'); ?> -<div class="table"> - <form method="post" action=""> - <h1>Gérer les catégories</h1> - +<div class="post"> + <form method="post" action="<?php echo _url ('configure', 'categorize'); ?>"> + <legend>Gestion des catégories</legend> + <?php $i = 0; foreach ($this->categories as $cat) { $i++; ?> - <label for="cat_<?php echo $cat->id (); ?>">Catégorie n°<?php echo $i; ?></label> - <input type="text" id="cat_<?php echo $cat->id (); ?>" name="categories[]" value="<?php echo $cat->name (); ?>" /> - <input type="hidden" name="ids[]" value="<?php echo $cat->id (); ?>" /> + <div class="form-group"> + <label class="group-name" for="cat_<?php echo $cat->id (); ?>">Catégorie n°<?php echo $i; ?></label> + <div class="group-controls"> + <input type="text" id="cat_<?php echo $cat->id (); ?>" name="categories[]" value="<?php echo $cat->name (); ?>" /> + <input type="hidden" name="ids[]" value="<?php echo $cat->id (); ?>" /> + </div> + </div> <?php } ?> - - <label for="new_category">Ajouter une catégorie</label> - <input type="text" id="new_category" name="new_category" placeholder="Nouvelle catégorie" /> - - <button class="btn btn-important">Sauvegarder</button> + + <div class="form-group"> + <label class="group-name" for="new_category">Ajouter une catégorie</label> + <div class="group-controls"> + <input type="text" id="new_category" name="new_category" placeholder="Nouvelle catégorie" /> + </div> + </div> + + <div class="form-group form-actions"> + <div class="group-controls"> + <button type="submit" class="btn btn-important">Sauvegarder</button> + <button type="reset" class="btn">Annuler</button> + </div> + </div> </form> </div> |
