</script>
</head>
-<body>
+<body id="acq_acqui-home" class="acq">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'acquisitions-search.inc' %]
<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>
[% IF ( loop_budget ) %]
- <h3>All available funds[% IF ( branchname ) %] for [% branchname %] branch[% END %]</h3>
+ <h3>All available funds[% IF ( branchname ) %] for [% branchname %] library[% END %]</h3>
<!-- <a href="/cgi-bin/koha/admin/aqbookfund.pl" title="[ Manage funds ]">[ Manage ]</a>
<a href="/cgi-bin/koha/admin/budgetperiods.pl">manage budgets</a><br><br> -->
<tr>
<th>Fund</th>
<th>Owner</th>
- <th>Branch</th>
+ <th>Library</th>
<th>Amount</th>
<th>Ordered</th>
<th>Spent</th>
<td align="center">[% loop_budge.budget_owner %]</td>
<td align="center">[% loop_budge.budget_branchname %]</td>
<td align="right" >[% loop_budge.budget_amount %]</td>
- <td align="right" ><a href="ordered.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_ordered %]</a></td>
- <td align="right" ><a href="spent.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_spent %]</a></td>
+ <td align="right" ><a href="ordered.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_ordered %]</a></td>
+ <td align="right" ><a href="spent.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_spent %]</a></td>
<td align="right" >[% loop_budge.budget_avail %]</td>
</tr>
[% ELSE %]
<td align="center">[% loop_budge.budget_owner %]</td>
<td align="center">[% loop_budge.budget_branchname %]</td>
<td align="right" >[% loop_budge.budget_amount %]</td>
- <td align="right" ><a href="ordered.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_ordered %]</a></td>
- <td align="right" ><a href="spent.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_spent %]</a></td>
+ <td align="right" ><a href="ordered.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_ordered %]</a></td>
+ <td align="right" ><a href="spent.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_spent %]</a></td>
<td align="right" >[% loop_budge.budget_avail %]</td>
[% END %]
[% END %]