Bug 7889 [Acquisitions] Use standard style for errors and messages
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / acqui-home.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Acquisitions</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript">
5 //<![CDATA[
6 $(document).ready(function() {
7     $('#showallbudgets').click(function() {
8         if ( $('#showallbudgets:checked').val() !== undefined) {
9             $('.b_inactive').show();
10             $('#b_inactive').show();
11             $('.bu_active').show();
12             $('.bu_inactive').hide();
13         }
14         else {
15             $('.b_inactive').hide();
16             $('#b_inactive').hide();
17             $('.bu_inactive').show();
18             $('.bu_active').hide();
19         }
20     });
21 });
22 //]]>
23 </script>
24
25 </head>
26 <body id="acq_acqui-home" class="acq">
27 [% INCLUDE 'header.inc' %]
28 [% INCLUDE 'acquisitions-search.inc' %]
29
30 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; </div>
31
32 <div id="doc3" class="yui-t2">
33
34 <div id="bd">
35     <div id="yui-main">
36     <div class="yui-b">
37
38 [% INCLUDE 'acquisitions-toolbar.inc' %]
39
40 <h1>Acquisitions</h1>
41 <div class="yui-g">
42 <div class="yui-u first">
43 <div id="acqui_acqui_home_order">
44
45     [% UNLESS ( loop_budget ) %]
46         [% IF ( CAN_user_parameters ) %]
47         <div class="dialog alert">You must <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">define a budget</a> in Administration</div>
48         [% ELSE %]
49         <div class="dialog alert">Your administrator must define a budget in Administration</div>
50         [% END %]
51     [% END %]
52
53     <fieldset>
54         <legend>Manage orders</legend>
55         <form name="findsupplier" action="/cgi-bin/koha/acqui/booksellers.pl" method="post">
56             <p><label for="supplierpage">Vendor: </label><input type="text" size="25" name="supplier" id="supplierpage" class="focus" />
57             <input type="submit" value="Search" />
58             </p>
59         </form>
60     </fieldset>
61 </div>
62
63 [% IF ( suggestion ) %][% IF ( suggestions_count ) %]
64 <div id="acqui_acqui_home_suggestions">
65     <fieldset>
66     <legend>Pending suggestions</legend>
67         <p>[% suggestions_count %] suggestions waiting. <a href="/cgi-bin/koha/suggestion/suggestion.pl">Manage suggestions</a>.</p>
68     </fieldset>
69 </div>[% END %][% END %]
70
71 </div>
72
73 <div class="yui-u">
74
75         [% IF ( loop_budget ) %]
76
77             <h3>All available funds[% IF ( branchname ) %] for [% branchname %] library[% END %]</h3>
78
79     <!-- <a href="/cgi-bin/koha/admin/aqbookfund.pl" title="[ Manage funds ]">[ Manage ]</a>
80     <a href="/cgi-bin/koha/admin/budgetperiods.pl">manage budgets</a><br><br>  -->
81
82
83
84     <div id="BudgetsAndFunds">
85     <table id="accounts">
86         <thead>
87         <tr>
88             <th>Fund</th>
89             <th>Owner</th>
90             <th>Library</th>
91             <th>Amount</th>
92             <th>Ordered</th>
93             <th>Spent</th>
94             <th>Avail</th>
95         </tr>
96         </thead>
97         <tfoot id="funds_total">
98         <tr>
99             <th>Total</th>
100             <th>&nbsp;</th>
101             <th>&nbsp;</th>
102             <th align="right" ><span class="bu_active" style="display : none;">[% total %]</span><span class="bu_inactive" >[% total_active %]</span></th>
103             <th align="right" ><span class="bu_active" style="display : none;">[% totordered %]</span><span class="bu_inactive" >[% totordered_active %]</span></th>
104             <th align="right" ><span class="bu_active" style="display : none;">[% totspent %]</span><span class="bu_inactive" >[% totspent_active %]</span></th>
105             <th align="right" ><span class="bu_active" style="display : none;">[% totavail %]</span><span class="bu_inactive" >[% totavail_active %]</span></th>
106         </tr>
107         </tfoot>
108         <tbody>
109         [% FOREACH loop_budge IN loop_budget %]
110             [% IF ( loop_budge.budget_period_active ) %]
111             [% IF ( loop.odd ) %]
112                 <tr>
113             [% ELSE %]
114                 <tr class="highlight">
115             [% END %]
116                 <td align="center">[% loop_budge.budget_code %]</td>
117                 <td align="center">[% loop_budge.budget_owner %]</td>
118                 <td align="center">[% loop_budge.budget_branchname %]</td>
119                 <td align="right" >[% loop_budge.budget_amount %]</td>
120                 <td align="right" ><a href="ordered.pl?fund=[% loop_budge.budget_id %]&amp;fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_ordered %]</a></td>
121                 <td align="right" ><a href="spent.pl?fund=[% loop_budge.budget_id %]&amp;fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_spent %]</a></td>
122                 <td align="right" >[% loop_budge.budget_avail %]</td>
123             </tr>
124             [% ELSE %]
125             [% IF ( loop.odd ) %]
126                 <tr class="b_inactive" style="display : none;">
127             [% ELSE %]
128                 <tr class="highlight" id = "b_inactive" style="display : none;">
129             [% END %]
130             <td align="center" >[% loop_budge.budget_code %]</td>
131                 <td align="center">[% loop_budge.budget_owner %]</td>
132                 <td align="center">[% loop_budge.budget_branchname %]</td>
133                 <td align="right" >[% loop_budge.budget_amount %]</td>
134                 <td align="right" ><a href="ordered.pl?fund=[% loop_budge.budget_id %]&amp;fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_ordered %]</a></td>
135                 <td align="right" ><a href="spent.pl?fund=[% loop_budge.budget_id %]&amp;fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_spent %]</a></td>
136                 <td align="right" >[% loop_budge.budget_avail %]</td>
137             [% END %]
138         [% END %]
139         </tbody>
140     </table>
141     </div><span class="label">Show all :&nbsp;</span><input type="checkbox" id="showallbudgets" />
142     [% END %]
143 </div>
144
145 </div>
146 </div>
147 </div>
148 <div class="yui-b">
149 [% INCLUDE 'acquisitions-menu.inc' %]
150 </div>
151 </div>
152 [% INCLUDE 'intranet-bottom.inc' %]