diff options
| author | 2013-10-08 11:19:49 +0200 | |
|---|---|---|
| committer | 2013-10-08 11:19:49 +0200 | |
| commit | c06aede546514aa35ab5369575f15710b30a2a23 (patch) | |
| tree | ff369a6d90b4848e31158df79bb438bab6b0c9ce /app/views/configure/categorize.phtml | |
| parent | b0809fcf5eec9d19f335bbed57102beadefba276 (diff) | |
Ajout d'un "popup" de confirmation
On vérifie que l'utilisateur a conscience de ce qu'il fait lorsqu'il
supprime un flux ou vide une catégorie
Diffstat (limited to 'app/views/configure/categorize.phtml')
| -rw-r--r-- | app/views/configure/categorize.phtml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/configure/categorize.phtml b/app/views/configure/categorize.phtml index b6ba5c3c7..9dac49ff8 100644 --- a/app/views/configure/categorize.phtml +++ b/app/views/configure/categorize.phtml @@ -15,7 +15,7 @@ </label> <div class="group-controls"> <input type="text" id="cat_<?php echo $cat->id (); ?>" name="categories[]" value="<?php echo $cat->name (); ?>" /> - <a href="<?php echo _url ('feed', 'delete', 'id', $cat->id (), 'type', 'category'); ?>"><?php echo Translate::t ('ask_empty'); ?></a> (<?php echo Translate::t ('number_feeds', $cat->nbFeed ()); ?>) + <a class="confirm" href="<?php echo _url ('feed', 'delete', 'id', $cat->id (), 'type', 'category'); ?>"><?php echo Translate::t ('ask_empty'); ?></a> (<?php echo Translate::t ('number_feeds', $cat->nbFeed ()); ?>) <?php if ($cat->id () == $this->defaultCategory->id ()) { ?> <i class="icon i_help"></i> <?php echo Translate::t ('can_not_be_deleted'); ?> <?php } ?> @@ -39,3 +39,5 @@ </div> </form> </div> + +<?php $this->renderHelper ('confirm_action_script'); ?> |
