Bug 26602: Don't export "actions" column
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / supplier.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE KohaDates %]
4 [% BLOCK edit_contact %]
5     <ol id="contact-form">
6         <input type="hidden" name="contact_id" value="[% contact.id | html %]" />
7         <li><label for="contact_name[% contact.id | html %]">Contact name: </label>
8             <input type="text" size="40" id="contact_name[% contact.id | html %]" name="contact_name" value="[% contact.name | html %]" /></li>
9         <li><label for="contact_position[% contact.id | html %]">Position: </label>
10             <input type="text" size="40" id="contact_position[% contact.id | html %]" name="contact_position" value="[% contact.position | html %]" /></li>
11         <li><label for="contact_phone[% contact.id | html %]">Phone: </label>
12                 <input type="text" size="20" id="contact_phone[% contact.id | html %]" name="contact_phone" value="[% contact.phone | html %]" /> </li>
13         <li><label for="contact_altphone[% contact.id | html %]">Alternative phone: </label>
14             <input type="text" size="20" id="contact_altphone[% contact.id | html %]" name="contact_altphone" value="[% contact.altphone | html %]" /></li>
15         <li><label for="contact_fax[% contact.id | html %]">Fax: </label>
16             <input type="text" size="20" id="contact_fax[% contact.id | html %]" name="contact_fax" value="[% contact.fax | html %]" /></li>
17         <li><label for="contact_email[% contact.id | html %]">Email: </label>
18             <input type="text" size="40" id="contact_email[% contact.id | html %]" name="contact_email" value="[% contact.email | html %]" class="email" /></li>
19         <li><label for="contact_notes[% contact.id | html %]">Notes: </label>
20             <textarea id="contact_notes[% contact.id | html %]" name="contact_notes" cols="40" rows="4">[% contact.notes | html %]</textarea></li>
21         <li><label for="contact_acqprimary[% contact.id | html %]">Primary acquisitions contact:</label>
22             [% IF contact.acqprimary %]
23                 <input type="checkbox" id="contact_acqprimary[% contact.id | html %]" class="contact_acqprimary" checked="checked"></input>
24             [% ELSE %]
25                 <input type="checkbox" id="contact_acqprimary[% contact.id | html %]" class="contact_acqprimary"></input>
26             [% END %]
27             <input type="hidden" class="contact_acqprimary_hidden" name="contact_acqprimary" value="[% contact.acqprimary | html %]"></input>
28         <li><label for="contact_serialsprimary[% contact.id | html %]">Primary serials contact:</label>
29             [% IF contact.serialsprimary %]
30                 <input type="checkbox" id="contact_serialsprimary[% contact.id | html %]" class="contact_serialsprimary" checked="checked"></input>
31             [% ELSE %]
32                 <input type="checkbox" id="contact_serialsprimary[% contact.id | html %]" class="contact_serialsprimary"></input>
33             [% END %]
34             <input type="hidden" class="contact_serialsprimary_hidden" name="contact_serialsprimary" value="[% contact.serialsprimary | html %]"></input>
35         <li><label for="contact_orderacquisition[% contact.id | html %]">Contact when ordering?</label>
36             [% IF contact.orderacquisition %]
37                 <input type="checkbox" id="contact_orderacquisition[% contact.id | html %]" class="contact_orderacquisition" checked="checked"></input>
38             [% ELSE %]
39                 <input type="checkbox" id="contact_orderacquisition[% contact.id | html %]" class="contact_orderacquisition"></input>
40             [% END %]
41             <input type="hidden" class="contact_orderacquisition_hidden" name="contact_orderacquisition" value="[% contact.orderacquisition | html %]"></input>
42         <li><label for="contact_claimacquisition[% contact.id | html %]">Contact about late orders?</label>
43             [% IF contact.claimacquisition %]
44                 <input type="checkbox" id="contact_claimacquisition[% contact.id | html %]" class="contact_claimacquisition" checked="checked"></input>
45             [% ELSE %]
46                 <input type="checkbox" id="contact_claimacquisition[% contact.id | html %]" class="contact_claimacquisition"></input>
47             [% END %]
48             <input type="hidden" class="contact_claimacquisition_hidden" name="contact_claimacquisition" value="[% contact.claimacquisition | html %]"></input>
49         <li><label for="contact_claimissues[% contact.id | html %]">Contact about late issues?</label>
50             [% IF contact.claimissues %]
51                 <input type="checkbox" id="contact_claimissues[% contact.id | html %]" class="contact_claimissues" checked="checked"></input>
52             [% ELSE %]
53                 <input type="checkbox" id="contact_claimissues[% contact.id | html %]" class="contact_claimissues"></input>
54             [% END %]
55             <input type="hidden" class="contact_claimissues_hidden" name="contact_claimissues" value="[% contact.claimissues | html %]"></input>
56         </li>
57         [% IF contact.id %]<li><button class="btn btn-default delete-contact"><i class="fa fa-trash"></i> Delete contact</li>[% END %]
58     </ol>
59 [% END %]
60
61 [% BLOCK show_contact %]
62     <h3>[% contact.name | html %]</h3>
63     <p><span class="label">Position: </span>[% contact.position | html %]</p>
64     <p><span class="label">Phone: </span>[% contact.phone | html %]</p>
65     <p><span class="label">Alternative phone: </span>[% contact.altphone | html %]</p>
66     <p><span class="label">Fax: </span>[% contact.fax | html %]</p>
67     [% IF ( contact.email ) %]
68         <p><span class="label">Email: </span><a href="mailto:[% contact.email | uri %]">[% contact.email | html %]</a></p>
69     [% END %]
70     [% IF ( contact.notes ) %]
71         <p><span class="label">Notes: </span>[% contact.notes | html %]</p>
72     [% END %]
73     [% IF ( contact.acqprimary ) %]
74         <p><span class="label">Primary acquisitions contact</span></p>
75     [% END %]
76     [% IF ( contact.serialsprimary ) %]
77         <p><span class="label">Primary serials contact</span></p>
78     [% END %]
79     [% IF ( contact.orderacquisition ) %]
80         <p><span class="label">Receives orders</span></p>
81     [% END %]
82     [% IF ( contact.claimacquisition ) %]
83         <p><span class="label">Receives claims for late orders</span></p>
84     [% END %]
85     [% IF ( contact.claimissues ) %]
86         <p><span class="label">Receives claims for late issues</span></p>
87     [% END %]
88 [% END %]
89
90 [% SET footerjs = 1 %]
91 [% INCLUDE 'doc-head-open.inc' %]
92 <title>Koha &rsaquo; Vendor [% name | html %]</title>
93 [% INCLUDE 'doc-head-close.inc' %]
94 </head>
95
96 <body id="acq_supplier" class="acq">
97 [% INCLUDE 'header.inc' %]
98 [% INCLUDE 'acquisitions-search.inc' %]
99
100 <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; [% IF ( enter ) %][% IF ( booksellerid ) %] <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]">[% name | html %]</a> &rsaquo; Update: [% name | html %][% ELSE %]Add vendor[% END %] [% ELSE %][% name | html %][% END %]</div>
101
102 <div class="main container-fluid">
103     <div class="row">
104         <div class="col-sm-10 col-sm-push-2">
105             <main>
106
107     [% IF ( enter ) %]
108         [% IF ( booksellerid ) %]
109         <h1>Update: [% name | html %]</h1>
110     [% ELSE %]
111         <h1>Add vendor</h1>
112     [% END %]
113     [% END %]
114 [% UNLESS ( enter ) %][% INCLUDE 'acquisitions-toolbar.inc' %][% END %]
115 [% IF ( enter ) %]
116     <form action="updatesupplier.pl" name="updatesupplier" style="display:block" class="validated" method="post">
117         <div id="toolbar" class="btn-toolbar">
118             <button class="btn btn-default" type="submit"><i class="fa fa-save"></i> Save</button>
119             [% IF ( booksellerid ) %]
120                 <a class="btn btn-default cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]">
121             [% ELSE %]
122                 <a class="btn btn-default cancel" href="/cgi-bin/koha/acqui/acqui-home.pl">
123             [% END %] <i class="fa fa-remove"></i> Cancel</a>
124         </div>
125
126         <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
127         <fieldset class="rows">
128             <legend>Company details</legend>
129             <ol><li><label for="company" class="required">Name:</label>
130                 <input type="text" size="40" id="company" name="company" value="[% name | html %]" required="required" class="required focus" /><span class="required">Required</span></li>
131             <li><label for="company_postal">Postal address: </label>
132                     <textarea id="company_postal" name="company_postal" cols="40" rows="3">[% postal | html %]</textarea></li>
133             <li><label for="physical">Physical address: </label>
134                 <textarea id="physical" name="physical" cols="40" rows="3">[% address1 | html %][% address2 | html %][% address3 | html %][% address4 | html %]</textarea></li>
135             <li><label for="company_phone">Phone: </label>
136                 <input type="text" size="20" id="company_phone" name="company_phone" value="[% phone | html %]" /></li>
137             <li><label for="company_fax">Fax: </label>
138                 <input type="text" size="20" id="company_fax" name="company_fax" value="[% fax | html %]" /></li>
139             <li><label for="website">Website: </label>
140                 <input type="text" size="40" id="website" name="website" value="[% url | html %]" class="url" /></li>
141             <li><label for="accountnumber">Account number: </label>
142                 <input type="text" size="40" id="accountnumber" name="accountnumber" value="[% accountnumber | html %]" /></li></ol>
143         </fieldset>
144         <fieldset class="rows">
145             <legend>Contacts</legend>
146             <fieldset id="contact-template" class="supplier-contact">
147                 <legend>Contact details</legend>
148                 [% INCLUDE edit_contact %]
149             </fieldset>
150             [% FOREACH contact IN contacts %]
151                 <fieldset class="supplier-contact">
152                     <legend>Contact details</legend>
153                     [% INCLUDE edit_contact %]
154                 </fieldset>
155             [% END %]
156             <button id="add-contact" class="btn btn-default"><i class="fa fa-plus"></i> Add another contact</button>
157         </fieldset>
158
159         <fieldset class="rows">
160             <legend>Ordering information</legend>
161             <ol><li><label for="activestatus">Vendor is:</label>
162                     [% IF ( active ) %]
163                         <label class="radio" for="activestatus">
164                             Active <input type="radio" id="activestatus" name="status" value="1" checked="checked" />
165                         </label>
166                         <label class="radio" for="inactivestatus">
167                             Inactive <input type="radio" id="inactivestatus" name="status" value="0" />
168                         </label>
169                     [% ELSE %]
170                         <label class="radio" for="activestatus">
171                             Active <input type="radio" id="activestatus" name="status" value="1" />
172                         </label>
173                         <label class="radio" for="inactivestatus">
174                             Inactive <input type="radio" id="inactivestatus" name="status" value="0" checked="checked" />
175                         </label>
176                     [% END %]</li>
177             <li><label for="list_currency">List prices are: </label>
178                 <select name="list_currency" id="list_currency">
179                     [% FOREACH c IN currencies %]
180                         [% IF booksellerid and c.currency == listprice or not booksellerid and c.active %]
181                             <option value="[% c.currency | html %]" selected="selected">[% c.currency | html %]</option>
182                         [% ELSIF not c.archived %]
183                             <option value="[% c.currency | html %]">[% c.currency | html %]</option>
184                         [% END %]
185                     [% END %]
186                 </select>
187             </li>
188             <li><label for="invoice_currency">Invoice prices are: </label>
189                 <select name="invoice_currency" id="invoice_currency">
190                     [% FOREACH c IN currencies %]
191                         [% IF booksellerid and c.currency == invoiceprice or not booksellerid and c.active %]
192                             <option value="[% c.currency | html %]" selected="selected">[% c.currency | html %]</option>
193                         [% ELSIF not c.archived %]
194                             <option value="[% c.currency | html %]">[% c.currency | html %]</option>
195                         [% END %]
196                     [% END %]
197                 </select>
198             </li>
199             <li><label for="gstyes">Tax number registered:</label>
200                 [% IF ( gstreg ) %]
201                     <label class="radio" for="gstyes">
202                         Yes <input type="radio" name="gst" id="gstyes" value="1" checked="checked" />
203                     </label>
204                     <label class="radio" for="gstno">
205                         No <input type="radio" name="gst" id="gstno" value="0" />
206                     </label>
207                 [% ELSE %]
208                     <label class="radio" for="gstyes">
209                         Yes <input type="radio" name="gst" id="gstyes" value="1" />
210                     </label>
211                     <label class="radio" for="gstno">
212                         No <input type="radio" name="gst" id="gstno" value="0" checked="checked" />
213                     </label>
214                 [% END %]</li>
215
216             <li><label for="list_gstyes">List prices:</label>
217                 [% IF ( listincgst ) %]
218                     <label class="radio" for="list_gstyes">
219                         Include tax <input type="radio" id="list_gstyes" name="list_gst" value="1" checked="checked" />
220                     </label>
221                     <label class="radio" for="list_gstno">
222                         Don't include tax <input type="radio" id="list_gstno" name="list_gst" value="0" />
223                     </label>
224                 [% ELSE %]
225                     <label class="radio" for="list_gstyes">
226                         Include tax <input type="radio" id="list_gstyes" name="list_gst" value="1" />
227                     </label>
228                     <label class="radio" for="list_gstno">
229                         Don't include tax <input type="radio" id="list_gstno" name="list_gst" value="0" checked="checked" />
230                     </label>
231                 [% END %]</li>
232
233             <li><label for="invoice_gstyes">Invoice prices:</label>
234                 [% IF ( invoiceincgst ) %]
235                     <label class="radio" for="invoice_gstyes">
236                         Include tax <input type="radio" id="invoice_gstyes" name="invoice_gst" value="1" checked="checked" />
237                     </label>
238                     <label class="radio" for="invoice_gstno">
239                         Don't include tax <input type="radio" id="invoice_gstno" name="invoice_gst" value="0" />
240                     </label>
241                     [% ELSE %]
242                     <label class="radio" for="invoice_gstyes">
243                         Include tax <input type="radio" id="invoice_gstyes" name="invoice_gst" value="1" />
244                     </label>
245                     <label class="radio" for="invoice_gstno">
246                         Don't include tax <input type="radio" id="invoice_gstno" name="invoice_gst" value="0" checked="checked" />
247                     </label>
248                 [% END %]</li>
249
250             [% IF gst_values %]
251                 <li>
252                   <label for="tax_rate">Tax rate: </label>
253                   <select name="tax_rate" id="tax_rate">
254                   [% FOREACH gst IN gst_values %]
255                     [% IF ( tax_rate == gst.option ) %]
256                       <option value="[% gst.option | html %]" selected="selected">[% gst.option * 100 | html %] %</option>
257                     [% ELSE %]
258                       <option value="[% gst.option | html %]">[% gst.option * 100 | html %] %</option>
259                     [% END %]
260                   [% END %]
261                   </select>
262                 </li>
263             [% ELSE %]
264                 <input type="hidden" name="tax_rate" value="0" />
265             [% END %]
266             <li><label for="discount">Discount: </label>
267                 <input type="text" size="6" id="discount" name="discount" value="[% discount | format ("%.1f") %]" />%</li>
268             <li>
269                 <label for="deliverytime">Delivery time: </label>
270                 <input type="text" size="2" id="deliverytime" name="deliverytime" value="[% deliverytime | html %]" /> days
271             </li>
272             <li><label for="notes">Notes: </label>
273                 <textarea cols="40" rows="4" id="notes" name="notes" >[% notes | html %]</textarea></li>
274             </ol>
275         </fieldset>
276         <fieldset class="action"><input type="submit" value="Save" /> [% IF ( booksellerid ) %]
277         <a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]">[% ELSE %]<a class="cancel" href="/cgi-bin/koha/acqui/acqui-home.pl">
278         [% END %]Cancel</a></fieldset>
279
280     </form>
281 [% ELSE %]
282     <h1>[% name | html %]</h1>
283         <div class="row">
284             <div id="supplier-company-details" class="col-sm-6">
285                 <h2>Vendor details</h2>
286                 <p><span class="label">Company name: </span>[% name | html %]</p>
287                 <p><span class="label">Postal address: </span>[% postal | html %]</p>
288                 <p><span class="label">Physical address: </span>[% address1 | html %][% address2 | html %][% address3 | html %][% address4 | html %]</p>
289                 <p><span class="label">Phone: </span>[% phone | html %]</p>
290                 <p><span class="label">Fax: </span>[% fax | html %]</p>
291                 [% IF ( url ) %]
292                     <p><span class="label">Website: </span><a href="[% url | url %]">[% url | html %]</a></p>
293                 [% END %]
294                 [% IF ( accountnumber ) %]
295                     <p><span class="label">Account number: </span>[% accountnumber | html %]</p>
296                 [% END %]
297
298             <div id="supplier-ordering-information">
299             <h2>Ordering information</h2>
300                 <p><strong>Vendor is: </strong>
301                         [% IF ( active ) %]
302                             Active
303                         [% ELSE %]
304                             Inactive
305                         [% END %]</p>
306                 <p><strong>List prices are: </strong>[% listprice | html %]</p>
307                 <p><strong>Invoice prices are: </strong>[% invoiceprice | html %]</p>
308                 [% IF ( tax_rate ) %]<p><strong>Tax number registered: </strong>
309                         [% IF ( gstreg ) %]Yes[% ELSE %]No[% END %]</p>
310                 <p><strong>List item price includes tax: </strong>
311                         [% IF ( listincgst ) %]Yes[% ELSE %]No[% END %]</p>
312                 <p><strong>Invoice item price includes tax: </strong>
313                         [% IF ( invoiceincgst ) %]Yes[% ELSE %]No[% END %]</p>[% END %]
314                 <p><strong>Discount: </strong>
315                     [% discount | format("%.1f") %] %</p>
316                 <p><strong>Tax rate: </strong>
317                     [% ( tax_rate || 0 ) * 100 | html %] %</p>
318                 [% IF deliverytime.defined %]
319                     <p><strong>Delivery time: </strong>
320                         [% deliverytime | html %] days</p>
321                 [% END %]
322                 [% IF ( notes ) %]<p><strong>Notes: </strong>
323                     [% notes | html %]</p>[% END %]
324             </div> <!-- .supplier-ordering-information -->
325             </div> <!-- /.col-sm-6 -->
326
327             <div class="col-sm-6">
328                 <div class="supplier-contact-details">
329                     <h2>Contact</h2>
330                     [% FOREACH contact IN contacts %]
331                         [% INCLUDE show_contact %]
332                     [% END %]
333                 </div>
334
335                 <div class="subscription-details">
336                     <h2>Subscription details</h2>
337                     <p><strong>Number of subscriptions: </strong>
338                         [% IF (  CAN_user_serials ) %]
339                             <a href="/cgi-bin/koha/serials/serials-search.pl?bookseller_filter=[% name | uri %]&searched=1">[% subscriptioncount | html %]</a>
340                         [% ELSE %]
341                             [% subscriptioncount | html %]
342                         [% END %]
343                     </p>
344                 </div>
345
346             </div>
347
348         </div>
349
350         [% IF ( contracts ) %]
351             <div id="supplier-contracts">
352                 <h2>Contract(s)</h2>
353                 <table id="contractst">
354                   <thead>
355                     <tr>
356                         <th scope="col">Name</th>
357                         <th scope="col">Description</th>
358                         <th scope="col" class="title-string">Start date</th>
359                         <th scope="col" class="title-string">End date</th>
360                         [% IF CAN_user_acquisition_contracts_manage %]
361                             <th scope="col" class="NoSort noExport">Actions</th>
362                         [% END %]
363                     </tr>
364                   </thead>
365                   <tbody>
366                     [% FOREACH contract IN contracts %]
367                         <tr>
368                         <td>
369                             <a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&amp;contractnumber=[% contract.contractnumber | uri %]&amp;booksellerid=[% contract.booksellerid | uri %]">[% contract.contractname | html %]</a>
370                         </td>
371                         <td>[% contract.contractdescription | html %]</td>
372                         <td><span title="[% contract.contractstartdate | html %]">[% contract.contractstartdate | $KohaDates %]</span></td>
373                         <td><span title="[% contract.contractenddate | html %]">[% contract.contractenddate | $KohaDates %]</span></td>
374                         [% IF CAN_user_acquisition_contracts_manage %]
375                             <td class="actions">
376                                 <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&amp;contractnumber=[% contract.contractnumber | html %]&amp;booksellerid=[% contract.booksellerid | html %]"><i class="fa fa-pencil"></i> Edit</a>
377                                 <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/aqcontract.pl?op=delete_confirm&amp;contractnumber=[% contract.contractnumber | html %]&amp;booksellerid=[% contract.booksellerid | html %]"><i class="fa fa-trash"></i> Delete</a>
378                             </td>
379                         [% END %]
380                         </tr>
381                     [% END %]
382                   </tbody>
383                 </table>
384             </div>
385         [% END %]
386
387 [% END %]
388
389 </main>
390 </div> <!-- /.col-sm-10.col-sm-push-2 -->
391
392 <div class="col-sm-2 col-sm-pull-10">
393     <aside>
394         [% INCLUDE 'vendor-menu.inc' %]
395     </aside>
396 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
397 </div> <!-- /.row -->
398 [% MACRO jsinclude BLOCK %]
399     [% Asset.js("js/acquisitions-menu.js") | $raw %]
400     [% Asset.js("lib/hc-sticky.js") | $raw %]
401     [% INCLUDE 'datatables.inc' %]
402     <script>
403         function confirm_deletion() {
404             if (confirm(_("Confirm deletion of this vendor ?"))) {
405                 window.location="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]&op=delete";
406             }
407         }
408
409         function add_contact() {
410             var new_contact = $('#contact-template').clone();
411             var timestamp = new Date().getTime();
412             $(new_contact).removeAttr('id');
413             $('input, textarea', new_contact).each(function () {
414                 $(this).attr('id', $(this).attr('id') + '_' + timestamp);
415             });
416             $('label', new_contact).each(function () {
417                 $(this).attr('for', $(this).attr('for') + '_' + timestamp);
418             });
419             $(new_contact).insertBefore(this);
420             if ($('.supplier-contact').length === 2) { // First contact
421                 $.each(['.contact_acqprimary', '.contact_serialsprimary', '.contact_orderacquisition', '.contact_claimacquisition', '.contact_claimissues'], function (idx, checkbox) {
422                     $(checkbox, new_contact).click();
423                 });
424             }
425             $('input[name="contact_name"]', new_contact).focus();
426             return false;
427         }
428
429         function delete_contact(ev) {
430             $(this).parents('.supplier-contact').remove();
431             ev.preventDefault();
432         }
433
434         var Sticky;
435
436          $(document).ready(function() {
437             var contractst = $("#contractst").dataTable($.extend(true, {}, dataTablesDefaults, {
438                 "aoColumnDefs": [
439                     { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
440                     { "sType": "title-string", "aTargets" : [ "title-string" ] }
441                 ],
442                 'sDom': 't'
443             } ) );
444             $('body').on('click', '.delete-contact', null, delete_contact);
445             $('#add-contact').click(add_contact);
446             $('body').on('click', '.contact_acqprimary', null, function () {
447                 if ($(this).is(':checked')) {
448                     $('.contact_acqprimary').filter(':checked').not(this).prop('checked', false);
449                     $('.contact_acqprimary_hidden').each(function () {
450                         $(this).val('0');
451                     });
452                 }
453                 $(this).next('.contact_acqprimary_hidden').val('1');
454             });
455             $('body').on('click', '.contact_serialsprimary', null, function () {
456                 if ($(this).is(':checked')) {
457                     $('.contact_serialsprimary').filter(':checked').not(this).prop('checked', false);
458                     $('.contact_serialsprimary_hidden').each(function () {
459                         $(this).val('0');
460                     });
461                 }
462                 $(this).next('.contact_serialsprimary_hidden').val($(this).is(':checked') ? '1' : '0');
463             });
464             $('body').on('click', '.contact_orderacquisition', null, function () {
465                 $(this).next('.contact_orderacquisition_hidden').val($(this).is(':checked') ? '1' : '0');
466             });
467             $('body').on('click', '.contact_claimacquisition', null, function () {
468                 $(this).next('.contact_claimacquisition_hidden').val($(this).is(':checked') ? '1' : '0');
469             });
470             $('body').on('click', '.contact_claimissues', null, function () {
471                 $(this).next('.contact_claimissues_hidden').val($(this).is(':checked') ? '1' : '0');
472             });
473
474             Sticky = $("#toolbar");
475             Sticky.hcSticky({
476                 stickTo: "main",
477                 stickyClass: "floating"
478             });
479         });
480     </script>
481 [% END %]
482
483 [% INCLUDE 'intranet-bottom.inc' %]