From c06aede546514aa35ab5369575f15710b30a2a23 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Tue, 8 Oct 2013 11:19:49 +0200 Subject: Ajout d'un "popup" de confirmation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On vérifie que l'utilisateur a conscience de ce qu'il fait lorsqu'il supprime un flux ou vide une catégorie --- app/views/configure/categorize.phtml | 4 +++- app/views/configure/feed.phtml | 5 ++++- app/views/helpers/confirm_action_script.phtml | 5 +++++ 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 app/views/helpers/confirm_action_script.phtml (limited to 'app/views') 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 @@
- (nbFeed ()); ?>) + (nbFeed ()); ?>) id () == $this->defaultCategory->id ()) { ?> @@ -39,3 +39,5 @@
+ +renderHelper ('confirm_action_script'); ?> diff --git a/app/views/configure/feed.phtml b/app/views/configure/feed.phtml index 43bcd64b9..49e2f3cf1 100644 --- a/app/views/configure/feed.phtml +++ b/app/views/configure/feed.phtml @@ -106,11 +106,14 @@
- +
+ +renderHelper ('confirm_action_script'); ?> +
diff --git a/app/views/helpers/confirm_action_script.phtml b/app/views/helpers/confirm_action_script.phtml new file mode 100644 index 000000000..f77006fcc --- /dev/null +++ b/app/views/helpers/confirm_action_script.phtml @@ -0,0 +1,5 @@ + \ No newline at end of file -- cgit v1.2.3