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/i18n/en.php | 2 ++ app/i18n/fr.php | 2 ++ app/views/configure/categorize.phtml | 4 +++- app/views/configure/feed.phtml | 5 ++++- app/views/helpers/confirm_action_script.phtml | 5 +++++ 5 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 app/views/helpers/confirm_action_script.phtml diff --git a/app/i18n/en.php b/app/i18n/en.php index bd5c7290f..2cd415deb 100644 --- a/app/i18n/en.php +++ b/app/i18n/en.php @@ -214,6 +214,8 @@ return array ( 'forbidden_access' => 'Forbidden access', 'forbidden_access_description' => 'Access is password protected, please sign in to read your feeds.', + 'confirm_action' => 'Are you sure you want perform this action? It cannot be canceled!', + // DATE 'january' => 'january', 'february' => 'february', diff --git a/app/i18n/fr.php b/app/i18n/fr.php index 17a0fb702..fac1ac4f8 100644 --- a/app/i18n/fr.php +++ b/app/i18n/fr.php @@ -214,6 +214,8 @@ return array ( 'forbidden_access' => 'Accès interdit', 'forbidden_access_description' => 'L’accès est protégé par un mot de passe, veuillez vous connecter pour accéder aux flux.', + 'confirm_action' => 'Êtes-vous sûr de vouloir continuer ? Cette action ne peut être annulée !', + // DATE 'january' => 'janvier', 'february' => 'février', 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