Bug 7889 [Search errors] Use standard style for errors and messages
authorOwen Leonard <oleonard@myacpl.org>
Thu, 17 May 2012 16:56:48 +0000 (12:56 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Thu, 24 May 2012 16:11:58 +0000 (18:11 +0200)
There are two instances in the templates where markup is defined
for displaying search errors. I've never seen these appear and I
have no idea what kind of error might trigger it, but now it will
display correctly.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderbiblio.tt
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt

index 6342d33..60feb52 100644 (file)
 [% END %]
 
 [% IF ( query_error ) %]
-<br /><br />
-<b>Error:</b>
-<span class="problem">
-    [% query_error %]
-</span>
+    <div class="dialog alert"><p><strong>Error:</strong> [% query_error %]</p></div>
 [% END %]
 
 [% IF ( total ) %]
index 5af106a..1ebc862 100644 (file)
@@ -318,11 +318,7 @@ YAHOO.util.Event.onContentReady("searchheader", function () {
     [% END %]
 
     [% IF ( query_error ) %]
-        <br /><br />
-        Error:
-        <span  class="problem">
-            [% query_error %]
-        </span>
+        <div class="dialog alert"><p><strong>Error:</strong> [% query_error %]</p></div>
     [% END %]
 
     <!-- Search Results Table -->