Bug 11608: Delete unused commented lines in template
[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 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% INCLUDE 'datatables.inc' %]
6 <script type="text/javascript">
7 //<![CDATA[
8
9 dt_overwrite_html_sorting_localeCompare();
10
11 $(document).ready(function() {
12
13     var inactive = $(".b_inactive,.bu_active");
14     var active = $(".bu_inactive");
15     inactive.hide();
16     active.show();
17
18     $('#showallbudgets').click(function() {
19         if ( $('#showallbudgets:checked').val() !== undefined) {
20             inactive.show();
21             active.hide();
22         }
23         else {
24             inactive.hide();
25             active.show();
26         }
27     });
28     var srlt = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, {
29         "aoColumns": [
30             null,
31             null,
32             null,
33             null,
34             null,
35             { "sType": "title-numeric" },
36             { "sType": "title-numeric" },
37             { "sType": "title-numeric" },
38             { "sType": "title-numeric" }
39         ],
40         'sDom': 't',
41         'bPaginate': false,
42         'bFilter': false,
43         'bInfo': false
44     } ) );
45 });
46 //]]>
47 </script>
48
49 </head>
50 <body id="acq_acqui-home" class="acq">
51 [% INCLUDE 'header.inc' %]
52 [% INCLUDE 'acquisitions-search.inc' %]
53
54 <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>
55
56 <div id="doc3" class="yui-t2">
57
58 <div id="bd">
59     <div id="yui-main">
60     <div class="yui-b">
61
62 [% INCLUDE 'acquisitions-toolbar.inc' %]
63
64 <h1>Acquisitions</h1>
65     [% UNLESS ( loop_budget ) %]
66         [% IF ( CAN_user_acquisition_period_manage ) %]
67         <div class="dialog alert">You must <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">define a budget</a> in Administration</div>
68         [% ELSE %]
69         <div class="dialog alert">Your administrator must define a budget in Administration</div>
70         [% END %]
71     [% END %]
72 <div class="yui-g">
73 <div class="yui-u first">
74 <div id="acqui_acqui_home_order">
75     <fieldset>
76         <legend>Manage orders</legend>
77         <form name="findsupplier" action="/cgi-bin/koha/acqui/booksellers.pl" method="post">
78             <p><label for="supplierpage">Vendor: </label><input type="text" size="25" name="supplier" id="supplierpage" class="focus" />
79             <input type="submit" value="Search" />
80             </p>
81         </form>
82     </fieldset>
83 </div>
84 </div>
85
86 [% IF ( suggestion && suggestions_count ) %]
87 <div class="yui-u">
88     <div id="acqui_acqui_home_suggestions">
89         <fieldset>
90         <legend>Pending suggestions</legend>
91             <p>[% suggestions_count %] suggestions waiting. <a href="/cgi-bin/koha/suggestion/suggestion.pl">Manage suggestions</a>.</p>
92         </fieldset>
93     </div>
94 </div>
95 [% END %]
96
97 </div>
98
99 [% IF ( loop_budget ) %]
100
101             <h3>All available funds[% IF ( branchname ) %] for [% branchname %][% END %]</h3>
102
103     <div id="BudgetsAndFunds">
104     <p><label for="showallbudgets">Show active and inactive:</label> <input type="checkbox" id="showallbudgets" /></p>
105     <table id="accounts">
106         <thead>
107         <tr>
108             <th>Fund</th>
109             <th>Fund name</th>
110             <th class="b_inactive">Active</th>
111             <th>Owner</th>
112             <th>Library</th>
113             <th>Amount</th>
114             <th>Ordered</th>
115             <th>Spent</th>
116             <th>Avail</th>
117         </tr>
118         </thead>
119         <tfoot id="funds_total">
120         <tr>
121             <th>Total</th>
122             <th>&nbsp;</th>
123             <th class="b_inactive">&nbsp;</th>
124             <th>&nbsp;</th>
125             <th>&nbsp;</th>
126             <th class="data"><span class="bu_active">[% total %]</span><span class="bu_inactive" >[% total_active %]</span></th>
127             <th class="data"><span class="bu_active">[% totordered %]</span><span class="bu_inactive" >[% totordered_active %]</span></th>
128             <th class="data"><span class="bu_active">[% totspent %]</span><span class="bu_inactive" >[% totspent_active %]</span></th>
129             <th class="data"><span class="bu_active">[% totavail %]</span><span class="bu_inactive" >[% totavail_active %]</span></th>
130         </tr>
131         </tfoot>
132         <tbody>
133         [% FOREACH loop_budge IN loop_budget %]
134         [% IF ( loop_budge.budget_period_active ) %]
135             <tr>
136                 <td>
137                     [% IF ( CAN_user_acquisition_budget_manage ) %]
138                         <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% loop_budge.budget_period_id %]">[% loop_budge.budget_code %]</a>
139                     [% ELSE %]
140                         [% loop_budge.budget_code %]
141                     [% END %]
142                 </td>
143                 <td>[% loop_budge.budget_name %]</td>
144                 <td class="b_inactive">Active</td>
145                 <td>[% IF ( loop_budge.budget_owner_borrowernumber ) %]
146                         <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loop_budge.budget_owner_borrowernumber %]">[% loop_budge.budget_owner_surname %], [% loop_budge.budget_owner_firstname %]</a>
147                     [% ELSE %]
148                         &nbsp;
149                     [% END %]
150                 </td>
151                 <td>[% loop_budge.budget_branchname %]</td>
152                 <td class="data"><span title="[% loop_budge.budget_amount %]">[% loop_budge.formatted_budget_amount %]</span></td>
153                 <td class="data"><span title="[% loop_budge.budget_ordered %]"><a href="ordered.pl?fund=[% loop_budge.budget_id %]&amp;fund_code=[% loop_budge.budget_code %]">[% loop_budge.formatted_budget_ordered %]</a></span></td>
154                 <td class="data"><span title="[% loop_budge.budget_spent %]"><a href="spent.pl?fund=[% loop_budge.budget_id %]&amp;fund_code=[% loop_budge.budget_code %]">[% loop_budge.formatted_budget_spent %]</span></a></td>
155                 <td class="data"><span title="[% loop_budge.budget_avail %]">[% loop_budge.formatted_budget_avail %]</td>
156             </tr>
157         [% ELSE %]
158             <tr class="b_inactive">
159                 <td>
160                     [% IF ( CAN_user_acquisition_budget_manage ) %]
161                         <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% loop_budge.budget_period_id %]">[% loop_budge.budget_code %]</a>
162                     [% ELSE %]
163                         [% loop_budge.budget_code %]
164                     [% END %]
165                 </td>
166                 <td>[% loop_budge.budget_name %]</td>
167                 <td class="b_inactive">Inactive</td>
168                 <td>[% IF ( loop_budge.budget_owner_borrowernumber ) %]
169                         <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loop_budge.budget_owner_borrowernumber %]">[% loop_budge.budget_owner_surname %], [% loop_budge.budget_owner_firstname %]</a>
170                     [% ELSE %]
171                         &nbsp;
172                     [% END %]
173                 </td>
174                 <td>[% loop_budge.budget_branchname %]</td>
175                 <td class="data"><span title="[% loop_budge.budget_amount %]">[% loop_budge.formatted_budget_amount %]</span></td>
176                 <td class="data"><span title="[% loop_budge.budget_ordered %]"><a href="ordered.pl?fund=[% loop_budge.budget_id %]&amp;fund_code=[% loop_budge.budget_code %]">[% loop_budge.formatted_budget_ordered %]</a></span></td>
177                 <td class="data"><span title="[% loop_budge.budget_spent %]"><a href="spent.pl?fund=[% loop_budge.budget_id %]&amp;fund_code=[% loop_budge.budget_code %]">[% loop_budge.formatted_budget_spent %]</span></a></td>
178                 <td class="data"><span title="[% loop_budge.budget_avail %]">[% loop_budge.formatted_budget_avail %]</td>
179             </tr>
180         [% END %]
181         [% END %]
182         </tbody>
183     </table>
184     </div>
185     [% END %]
186
187 </div>
188 </div>
189 <div class="yui-b">
190 [% INCLUDE 'acquisitions-menu.inc' %]
191 </div>
192 </div>
193 [% INCLUDE 'intranet-bottom.inc' %]