diff options
| author | 2013-03-14 16:49:14 +0100 | |
|---|---|---|
| committer | 2013-03-14 16:49:14 +0100 | |
| commit | f53c01dcd49e2a1e974efb7b91bfe50981640b11 (patch) | |
| tree | 33c149b6f10245a03b864b591fc350187fa196a8 /app/views/configure/categorize.phtml | |
| parent | 9332fd5b0c1720a38aa5c85564da20c89a0f8a96 (diff) | |
Bien meilleure gestion des formulaires
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> |
