Bug 7889 [Acquisitions] Use standard style for errors and messages
authorOwen Leonard <oleonard@myacpl.org>
Thu, 17 May 2012 19:09:42 +0000 (15:09 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Thu, 24 May 2012 16:11:59 +0000 (18:11 +0200)
Correcting style of the warning on the Acquisitions home page
which appears if no budgets have been defined.

Also correcting the logic by which the warning appears, as a
change to the script inadvertently prevented it.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt

index f0e2942..7a44420 100644 (file)
@@ -41,27 +41,22 @@ $(document).ready(function() {
 <div class="yui-g">
 <div class="yui-u first">
 <div id="acqui_acqui_home_order">
-    <fieldset>
-        <legend>Manage orders</legend>
-    [% IF ( nobudget ) %]
+
+    [% UNLESS ( loop_budget ) %]
         [% IF ( CAN_user_parameters ) %]
-        <span class="problem">You must <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">define a budget</a> in Administration</span>
+        <div class="dialog alert">You must <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">define a budget</a> in Administration</div>
         [% ELSE %]
-        <span class="problem">Your administrator must define a budget in Administration</span>
+        <div class="dialog alert">Your administrator must define a budget in Administration</div>
         [% END %]
-        <form name="findsupplier" action="/cgi-bin/koha/acqui/booksellers.pl" method="post">
-            <p><label for="supplierpage">Vendor </label><input type="text" size="25" name="supplier" id="supplierpage" class="focus" />
-            <input type="submit" value="Search" />
-            </p>
-        </form>
-    [% ELSE %]
+    [% END %]
+
+    <fieldset>
+        <legend>Manage orders</legend>
         <form name="findsupplier" action="/cgi-bin/koha/acqui/booksellers.pl" method="post">
             <p><label for="supplierpage">Vendor: </label><input type="text" size="25" name="supplier" id="supplierpage" class="focus" />
             <input type="submit" value="Search" />
             </p>
         </form>
-
-    [% END %]
     </fieldset>
 </div>