Bug 23101: Hide action buttons on contracts if user lacks permission
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / supplier.tt
blobca74941c60b17cf33e01ca1d384653cbc6000061
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 %]
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 %]
90 [% SET footerjs = 1 %]
91 [% INCLUDE 'doc-head-open.inc' %]
92 <title>Koha &rsaquo; Vendor [% name | html %]</title>
93 [% Asset.css("css/datatables.css") | $raw %]
94 [% INCLUDE 'doc-head-close.inc' %]
95 </head>
97 <body id="acq_supplier" class="acq">
98 [% INCLUDE 'header.inc' %]
99 [% INCLUDE 'acquisitions-search.inc' %]
101 <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>
103 <div class="main container-fluid">
104     <div class="row">
105         <div class="col-sm-10 col-sm-push-2">
106             <main>
108     [% IF ( enter ) %]
109         [% IF ( booksellerid ) %]
110         <h1>Update: [% name | html %]</h1>
111     [% ELSE %]
112         <h1>Add vendor</h1>
113     [% END %]
114     [% END %]
115 [% UNLESS ( enter ) %][% INCLUDE 'acquisitions-toolbar.inc' %][% END %]
116 [% IF ( enter ) %]
117     <form action="updatesupplier.pl" name="updatesupplier" class="validated" method="post">
118         <div id="toolbar" class="btn-toolbar">
119             <button class="btn btn-default btn-sm" type="submit"><i class="fa fa-save"></i> Save</button>
120             [% IF ( booksellerid ) %]
121                 <a class="btn btn-default btn-sm cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]">
122             [% ELSE %]
123                 <a class="btn btn-default btn-sm cancel" href="/cgi-bin/koha/acqui/acqui-home.pl">
124             [% END %] <i class="fa fa-remove"></i> Cancel</a>
125         </div>
126     <div class="yui-g">
127         <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
128         <fieldset class="rows">
129             <legend>Company details</legend>
130             <ol><li><label for="company" class="required">Name:</label>
131                 <input type="text" size="40" id="company" name="company" value="[% name | html %]" required="required" class="required" /><span class="required">Required</span></li>
132             <li><label for="company_postal">Postal address: </label>
133                     <textarea id="company_postal" name="company_postal" cols="40" rows="3">[% postal | html %]</textarea></li>
134             <li><label for="physical">Physical address: </label>
135                 <textarea id="physical" name="physical" cols="40" rows="3">[% address1 | html %][% address2 | html %][% address3 | html %][% address4 | html %]</textarea></li>
136             <li><label for="company_phone">Phone: </label>
137                 <input type="text" size="20" id="company_phone" name="company_phone" value="[% phone | html %]" /></li>
138             <li><label for="company_fax">Fax: </label>
139                 <input type="text" size="20" id="company_fax" name="company_fax" value="[% fax | html %]" /></li>
140             <li><label for="website">Website: </label>
141                 <input type="text" size="40" id="website" name="website" value="[% url | html %]" class="url" /></li>
142             <li><label for="accountnumber">Account number: </label>
143                 <input type="text" size="40" id="accountnumber" name="accountnumber" value="[% accountnumber | html %]" /></li></ol>
144         </fieldset>
145         <fieldset class="rows">
146             <legend>Contacts</legend>
147             <fieldset id="contact-template" class="supplier-contact">
148                 <legend>Contact details</legend>
149                 [% INCLUDE edit_contact %]
150             </fieldset>
151             [% FOREACH contact IN contacts %]
152                 <fieldset class="supplier-contact">
153                     <legend>Contact details</legend>
154                     [% INCLUDE edit_contact %]
155                 </fieldset>
156             [% END %]
157             <button id="add-contact" class="btn btn-default"><i class="fa fa-plus"></i> Add another contact</button>
158         </fieldset>
160         <fieldset class="rows">
161             <legend>Ordering information</legend>
162             <ol><li><label for="activestatus">Vendor is:</label>
163                     [% IF ( active ) %]
164                         <label class="radio" for="activestatus">
165                             Active <input type="radio" id="activestatus" name="status" value="1" checked="checked" />
166                         </label>
167                         <label class="radio" for="inactivestatus">
168                             Inactive <input type="radio" id="inactivestatus" name="status" value="0" />
169                         </label>
170                     [% ELSE %]
171                         <label class="radio" for="activestatus">
172                             Active <input type="radio" id="activestatus" name="status" value="1" />
173                         </label>
174                         <label class="radio" for="inactivestatus">
175                             Inactive <input type="radio" id="inactivestatus" name="status" value="0" checked="checked" />
176                         </label>
177                     [% END %]</li>
178             <li><label for="list_currency">List prices are: </label>
179                 <select name="list_currency" id="list_currency">
180                     [% FOREACH c IN currencies %]
181                         [% IF booksellerid and c.currency == listprice or not booksellerid and c.active %]
182                             <option value="[% c.currency | html %]" selected="selected">[% c.currency | html %]</option>
183                         [% ELSIF not c.archived %]
184                             <option value="[% c.currency | html %]">[% c.currency | html %]</option>
185                         [% END %]
186                     [% END %]
187                 </select>
188             </li>
189             <li><label for="invoice_currency">Invoice prices are: </label>
190                 <select name="invoice_currency" id="invoice_currency">
191                     [% FOREACH c IN currencies %]
192                         [% IF booksellerid and c.currency == invoiceprice or not booksellerid and c.active %]
193                             <option value="[% c.currency | html %]" selected="selected">[% c.currency | html %]</option>
194                         [% ELSIF not c.archived %]
195                             <option value="[% c.currency | html %]">[% c.currency | html %]</option>
196                         [% END %]
197                     [% END %]
198                 </select>
199             </li>
200             <li><label for="gstyes">Tax number registered:</label>
201                 [% IF ( gstreg ) %]
202                     <label class="radio" for="gstyes">
203                         Yes <input type="radio" name="gst" id="gstyes" value="1" checked="checked" />
204                     </label>
205                     <label class="radio" for="gstno">
206                         No <input type="radio" name="gst" id="gstno" value="0" />
207                     </label>
208                 [% ELSE %]
209                     <label class="radio" for="gstyes">
210                         Yes <input type="radio" name="gst" id="gstyes" value="1" />
211                     </label>
212                     <label class="radio" for="gstno">
213                         No <input type="radio" name="gst" id="gstno" value="0" checked="checked" />
214                     </label>
215                 [% END %]</li>
217             <li><label for="list_gstyes">List prices:</label>
218                 [% IF ( listincgst ) %]
219                     <label class="radio" for="list_gstyes">
220                         Include tax <input type="radio" id="list_gstyes" name="list_gst" value="1" checked="checked" />
221                     </label>
222                     <label class="radio" for="list_gstno">
223                         Don't include tax <input type="radio" id="list_gstno" name="list_gst" value="0" />
224                     </label>
225                 [% ELSE %]
226                     <label class="radio" for="list_gstyes">
227                         Include tax <input type="radio" id="list_gstyes" name="list_gst" value="1" />
228                     </label>
229                     <label class="radio" for="list_gstno">
230                         Don't include tax <input type="radio" id="list_gstno" name="list_gst" value="0" checked="checked" />
231                     </label>
232                 [% END %]</li>
234             <li><label for="invoice_gstyes">Invoice prices:</label>
235                 [% IF ( invoiceincgst ) %]
236                     <label class="radio" for="invoice_gstyes">
237                         Include tax <input type="radio" id="invoice_gstyes" name="invoice_gst" value="1" checked="checked" />
238                     </label>
239                     <label class="radio" for="invoice_gstno">
240                         Don't include tax <input type="radio" id="invoice_gstno" name="invoice_gst" value="0" />
241                     </label>
242                     [% ELSE %]
243                     <label class="radio" for="invoice_gstyes">
244                         Include tax <input type="radio" id="invoice_gstyes" name="invoice_gst" value="1" />
245                     </label>
246                     <label class="radio" for="invoice_gstno">
247                         Don't include tax <input type="radio" id="invoice_gstno" name="invoice_gst" value="0" checked="checked" />
248                     </label>
249                 [% END %]</li>
251             [% IF gst_values %]
252                 <li>
253                   <label for="tax_rate">Tax rate: </label>
254                   <select name="tax_rate" id="tax_rate">
255                   [% FOREACH gst IN gst_values %]
256                     [% IF ( tax_rate == gst.option ) %]
257                       <option value="[% gst.option | html %]" selected="selected">[% gst.option * 100 | html %] %</option>
258                     [% ELSE %]
259                       <option value="[% gst.option | html %]">[% gst.option * 100 | html %] %</option>
260                     [% END %]
261                   [% END %]
262                   </select>
263                 </li>
264             [% ELSE %]
265                 <input type="hidden" name="tax_rate" value="0" />
266             [% END %]
267             <li><label for="discount">Discount: </label>
268                 <input type="text" size="6" id="discount" name="discount" value="[% discount | format ("%.1f") %]" />%</li>
269             <li>
270                 <label for="deliverytime">Delivery time: </label>
271                 <input type="text" size="2" id="deliverytime" name="deliverytime" value="[% deliverytime | html %]" /> days
272             </li>
273             <li><label for="notes">Notes: </label>
274                 <textarea cols="40" rows="4" id="notes" name="notes" >[% notes | html %]</textarea></li>
275             </ol>
276         </fieldset>
277         <fieldset class="action"><input type="submit" value="Save" /> [% IF ( booksellerid ) %]
278         <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">
279         [% END %]Cancel</a></fieldset>
280         </div>
281     </form>
282 [% ELSE %]
283     <h1>[% name | html %]</h1>
284         <div class="row">
285             <div id="supplier-company-details" class="col-sm-6">
286                 <h2>Vendor details</h2>
287                 <p><span class="label">Company name: </span>[% name | html %]</p>
288                 <p><span class="label">Postal address: </span>[% postal | html %]</p>
289                 <p><span class="label">Physical address: </span>[% address1 | html %][% address2 | html %][% address3 | html %][% address4 | html %]</p>
290                 <p><span class="label">Phone: </span>[% phone | html %]</p>
291                 <p><span class="label">Fax: </span>[% fax | html %]</p>
292                 [% IF ( url ) %]
293                     <p><span class="label">Website: </span><a href="[% url | url %]">[% url | html %]</a></p>
294                 [% END %]
295                 [% IF ( accountnumber ) %]
296                     <p><span class="label">Account number: </span>[% accountnumber | html %]</p>
297                 [% END %]
299             <div id="supplier-ordering-information">
300             <h2>Ordering information</h2>
301                 <p><strong>Vendor is: </strong>
302                         [% IF ( active ) %]
303                             Active
304                         [% ELSE %]
305                             Inactive
306                         [% END %]</p>
307                 <p><strong>List prices are: </strong>[% listprice | html %]</p>
308                 <p><strong>Invoice prices are: </strong>[% invoiceprice | html %]</p>
309                 [% IF ( tax_rate ) %]<p><strong>Tax number registered: </strong>
310                         [% IF ( gstreg ) %]Yes[% ELSE %]No[% END %]</p>
311                 <p><strong>List item price includes tax: </strong>
312                         [% IF ( listincgst ) %]Yes[% ELSE %]No[% END %]</p>
313                 <p><strong>Invoice item price includes tax: </strong>
314                         [% IF ( invoiceincgst ) %]Yes[% ELSE %]No[% END %]</p>[% END %]
315                 <p><strong>Discount: </strong>
316                     [% discount | format("%.1f") %] %</p>
317                 <p><strong>Tax rate: </strong>
318                     [% ( tax_rate || 0 ) * 100 | html %] %</p>
319                 [% IF deliverytime.defined %]
320                     <p><strong>Delivery time: </strong>
321                         [% deliverytime | html %] days</p>
322                 [% END %]
323                 [% IF ( notes ) %]<p><strong>Notes: </strong>
324                     [% notes | html %]</p>[% END %]
325             </div>
326             </div>
328             <div class="supplier-contact-details col-sm-6">
329                 <h2>Contact</h2>
330                 [% FOREACH contact IN contacts %]
331                     [% INCLUDE show_contact %]
332                 [% END %]
333             </div>
335             <div>
337                 <div class="subscription-details">
338                     <h2>Subscription details</h2>
339                     <p><strong>Number of subscriptions: </strong>[% subscriptioncount | html %]</p>
340                 </div>
342             </div>
344         </div>
346         [% IF ( contracts ) %]
347             <div id="supplier-contracts">
348                 <h2>Contract(s)</h2>
349                 <table id="contractst">
350                   <thead>
351                     <tr>
352                         <th scope="col">Name</th>
353                         <th scope="col">Description</th>
354                         <th scope="col" class="title-string">Start date</th>
355                         <th scope="col" class="title-string">End date</th>
356                         [% IF CAN_user_acquisition_contracts_manage %]
357                             <th scope="col">Actions</th>
358                         [% END %]
359                     </tr>
360                   </thead>
361                   <tbody>
362                     [% FOREACH contract IN contracts %]
363                         <tr>
364                         <td>
365                             <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>
366                         </td>
367                         <td>[% contract.contractdescription | html %]</td>
368                         <td><span title="[% contract.contractstartdate | html %]">[% contract.contractstartdate | $KohaDates %]</span></td>
369                         <td><span title="[% contract.contractenddate | html %]">[% contract.contractenddate | $KohaDates %]</span></td>
370                         [% IF CAN_user_acquisition_contracts_manage %]
371                             <td class="actions">
372                                 <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>
373                                 <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>
374                             </td>
375                         [% END %]
376                         </tr>
377                     [% END %]
378                   </tbody>
379                 </table>
380             </div>
381         [% END %]
383 [% END %]
385 </main>
386 </div> <!-- /.col-sm-10.col-sm-push-2 -->
388 <div class="col-sm-2 col-sm-pull-10">
389     <aside>
390         [% INCLUDE 'vendor-menu.inc' %]
391     </aside>
392 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
393 </div> <!-- /.row -->
394 [% MACRO jsinclude BLOCK %]
395     [% Asset.js("js/acquisitions-menu.js") | $raw %]
396     [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") | $raw %]
397     [% INCLUDE 'datatables.inc' %]
398     <script>
399         function confirm_deletion() {
400             if (confirm(_("Confirm deletion of this vendor ?"))) {
401                 window.location="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]&op=delete";
402             }
403         }
405         function add_contact() {
406             var new_contact = $('#contact-template').clone();
407             var timestamp = new Date().getTime();
408             $(new_contact).removeAttr('id');
409             $('input, textarea', new_contact).each(function () {
410                 $(this).attr('id', $(this).attr('id') + '_' + timestamp);
411             });
412             $('label', new_contact).each(function () {
413                 $(this).attr('for', $(this).attr('for') + '_' + timestamp);
414             });
415             $(new_contact).insertBefore(this);
416             if ($('.supplier-contact').length === 2) { // First contact
417                 $.each(['.contact_acqprimary', '.contact_serialsprimary', '.contact_orderacquisition', '.contact_claimacquisition', '.contact_claimissues'], function (idx, checkbox) {
418                     $(checkbox, new_contact).click();
419                 });
420             }
421             $('input[name="contact_name"]', new_contact).focus();
422             return false;
423         }
425         function delete_contact(ev) {
426             $(this).parents('.supplier-contact').remove();
427             ev.preventDefault();
428         }
430          $(document).ready(function() {
431             var contractst = $("#contractst").dataTable($.extend(true, {}, dataTablesDefaults, {
432                 "aoColumnDefs": [
433                     [% IF CAN_user_acquisition_contracts_manage %]
434                     { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
435                     [% ELSE %]
436                     { "bSortable": false, "bSearchable": false },
437                     [% END %]
438                     { "sType": "title-string", "aTargets" : [ "title-string" ] }
439                 ],
440                 'sDom': 't'
441             } ) );
442             $('body').on('click', '.delete-contact', null, delete_contact);
443             $('#add-contact').click(add_contact);
444             $('body').on('click', '.contact_acqprimary', null, function () {
445                 if ($(this).is(':checked')) {
446                     $('.contact_acqprimary').filter(':checked').not(this).prop('checked', false);
447                     $('.contact_acqprimary_hidden').each(function () {
448                         $(this).val('0');
449                     });
450                 }
451                 $(this).next('.contact_acqprimary_hidden').val('1');
452             });
453             $('body').on('click', '.contact_serialsprimary', null, function () {
454                 if ($(this).is(':checked')) {
455                     $('.contact_serialsprimary').filter(':checked').not(this).prop('checked', false);
456                     $('.contact_serialsprimary_hidden').each(function () {
457                         $(this).val('0');
458                     });
459                 }
460                 $(this).next('.contact_serialsprimary_hidden').val($(this).is(':checked') ? '1' : '0');
461             });
462             $('body').on('click', '.contact_orderacquisition', null, function () {
463                 $(this).next('.contact_orderacquisition_hidden').val($(this).is(':checked') ? '1' : '0');
464             });
465             $('body').on('click', '.contact_claimacquisition', null, function () {
466                 $(this).next('.contact_claimacquisition_hidden').val($(this).is(':checked') ? '1' : '0');
467             });
468             $('body').on('click', '.contact_claimissues', null, function () {
469                 $(this).next('.contact_claimissues_hidden').val($(this).is(':checked') ? '1' : '0');
470             });
471             $('#toolbar').fixFloat();
472         });
473     </script>
474 [% END %]
476 [% INCLUDE 'intranet-bottom.inc' %]