Bug 21993: Display a user-friendly message when the CSRF token is wrong
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / blocking_errors.inc
index 2d25a16..c734706 100644 (file)
@@ -3,8 +3,19 @@
     [% CASE 'unknown_patron' %]
         <div class="dialog message">This patron does not exist. <a href="/cgi-bin/koha/members/members-home.pl">Find another patron?</a></div>
     [% CASE 'cannot_see_patron_infos' %]You are not allowed to see the information of this patron.
-    [% CASE %][% blocking_error %]
+    [% CASE 'unknown_biblio' %]
+        <div class="dialog message">This bibliographic record does not exist.</div>
+    [% CASE 'unknown_item' %]
+        <div class="dialog message">This item does not exist.</div>
+    [% CASE 'unknown_subscription' %]
+        <div class="dialog message">This subscription does not exist.</div>
+    [% CASE 'unknown_basket' %]
+        <div class="dialog message">This basket does not exist.</div>
+    [% CASE 'wrong_csrf_token' %]
+        <div class="dialog message">The form submission failed (Wrong CSRF token). Try to come back, refresh the page, then try again.</div>
+    [% CASE %][% blocking_error | html %]
     [% END %]
 
+    [% INCLUDE 'intranet-bottom.inc' %]
     [% STOP %] [%# Will stop gracefully without processing any more of the template document.%]
 [% END %]