[Koha-patches] [PATCH] Bug 7889 [Acquisitions] Use standard style for errors and messages
Owen Leonard
oleonard at myacpl.org
Thu May 17 21:13:11 CEST 2012
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.
---
.../prog/en/modules/acqui/acqui-home.tt | 21 ++++++++------------
1 file changed, 8 insertions(+), 13 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt
index f0e2942..7a44420 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt
@@ -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>
--
1.7.9.5
More information about the Koha-patches
mailing list