View | Details | Raw Unified | Return to bug 8102
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt (-3 / +23 lines)
Lines 1-6 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Vendor [% bookselname %]</title>
2
<title>Koha &rsaquo; Vendor [% bookselname %]</title>
3
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
5
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
6
[% INCLUDE 'datatables-strings.inc' %]
7
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
8
<script type="text/javascript">
9
//<![CDATA[
10
 $(document).ready(function() {
11
    var contractst = $("#contractst").dataTable($.extend(true, {}, dataTablesDefaults, {
12
        "aoColumnDefs": [
13
            { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
14
        ],
15
        "sPaginationType": "four_button"
16
    } ) );
17
 });
18
 //]]>
19
</script>
4
<script type="text/javascript">
20
<script type="text/javascript">
5
//<![CDATA[
21
//<![CDATA[
6
function confirm_deletion() {
22
function confirm_deletion() {
Lines 203-216 if (f.company.value == "") { Link Here
203
        [% IF ( contracts ) %]
219
        [% IF ( contracts ) %]
204
            <div id="supplier-contracts" class="yui-g">
220
            <div id="supplier-contracts" class="yui-g">
205
                <h2>Contract(s)</h2>
221
                <h2>Contract(s)</h2>
206
                <table>
222
                <table id="contractst">
223
                    <thead>
207
                    <tr>
224
                    <tr>
208
                        <th scope="col">Name</th>
225
                        <th scope="col">Name</th>
209
                        <th scope="col">Description</th>
226
                        <th scope="col">Description</th>
210
                        <th scope="col">Start date</th>
227
                        <th scope="col">Start date</th>
211
                        <th scope="col">End date</th>
228
                        <th scope="col">End date</th>
212
                        <th scope="col" colspan="2">&nbsp; </th>
229
                        <th scope="col">&nbsp; </th>
230
                        <th scope="col">&nbsp; </th>
213
                    </tr>
231
                    </tr>
232
                    </thead>
233
                    <tbody>
214
                    [% FOREACH contract IN contracts %]
234
                    [% FOREACH contract IN contracts %]
215
                        [% IF ( loop.even ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
235
                        [% IF ( loop.even ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
216
                        <td>
236
                        <td>
Lines 223-228 if (f.company.value == "") { Link Here
223
                        <td><a href="/cgi-bin/koha/admin/aqcontract.pl?op=delete_confirm&amp;contractnumber=[% contract.contractnumber %]&amp;booksellerid=[% contract.booksellerid %]">Delete</a></td>
243
                        <td><a href="/cgi-bin/koha/admin/aqcontract.pl?op=delete_confirm&amp;contractnumber=[% contract.contractnumber %]&amp;booksellerid=[% contract.booksellerid %]">Delete</a></td>
224
                        </tr>
244
                        </tr>
225
                    [% END %]
245
                    [% END %]
246
                    </tbody>
226
                </table>
247
                </table>
227
            </div>
248
            </div>
228
        [% END %]
249
        [% END %]
229
- 

Return to bug 8102