Bug 5072 : Template changes
authorChris Cormack <chrisc@catalyst.net.nz>
Mon, 1 Aug 2011 21:49:59 +0000 (09:49 +1200)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 4 Aug 2011 01:53:34 +0000 (13:53 +1200)
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-add-to-basket.inc

index 12a2ead..9fe6c05 100644 (file)
@@ -1,5 +1,6 @@
 <fieldset id="acqui_basket_add">
     <legend>Add Order To Basket</legend>
+    [% IF has_budgets %]
     <form action="/cgi-bin/koha/acqui/neworderbiblio.pl" method="post">
         <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
         <input type="hidden" name="basketno" value="[% basketno %]" />
@@ -11,4 +12,7 @@
         <li><a href="/cgi-bin/koha/acqui/addorderiso2709.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]"> From a staged file</a></li>
         </ul>
     </form>
+    [% ELSE %]
+        You can't create any orders unless you first <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">define a budget and a fund</a>.
+    [% END %]
 </fieldset>
\ No newline at end of file