Bugzilla – Attachment 9608 Details for
Bug 8102
DataTables in Acquisision module: supplier.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
supplier.tt
supplier.tt (text/plain), 2.90 KB, created by
Jonathan Druart
on 2012-05-16 11:58:38 UTC
(
hide
)
Description:
supplier.tt
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2012-05-16 11:58:38 UTC
Size:
2.90 KB
patch
obsolete
>From 843d7588cf471c8d625076f3c0797b0712c0cf20 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Fri, 17 Feb 2012 16:01:11 +0100 >Subject: [PATCH 14/16] Bug 5345: DataTables integration in acquisition module > [14] > >supplier.tt >--- > .../prog/en/modules/acqui/supplier.tt | 25 ++++++++++++++++++- > 1 files changed, 23 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt >index f30d839..08bc35a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt >@@ -1,6 +1,22 @@ > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Vendor [% bookselname %]</title> >+<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> > [% INCLUDE 'doc-head-close.inc' %] >+<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script> >+[% INCLUDE 'datatables-strings.inc' %] >+<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script> >+<script type="text/javascript"> >+//<![CDATA[ >+ $(document).ready(function() { >+ var contractst = $("#contractst").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "aoColumnDefs": [ >+ { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false }, >+ ], >+ "sPaginationType": "four_button" >+ } ) ); >+ }); >+ //]]> >+</script> > <script type="text/javascript"> > //<![CDATA[ > function confirm_deletion() { >@@ -203,14 +219,18 @@ if (f.company.value == "") { > [% IF ( contracts ) %] > <div id="supplier-contracts" class="yui-g"> > <h2>Contract(s)</h2> >- <table> >+ <table id="contractst"> >+ <thead> > <tr> > <th scope="col">Name</th> > <th scope="col">Description</th> > <th scope="col">Start date</th> > <th scope="col">End date</th> >- <th scope="col" colspan="2"> </th> >+ <th scope="col"> </th> >+ <th scope="col"> </th> > </tr> >+ </thead> >+ <tbody> > [% FOREACH contract IN contracts %] > [% IF ( loop.even ) %]<tr class="highlight">[% ELSE %]<tr>[% END %] > <td> >@@ -223,6 +243,7 @@ if (f.company.value == "") { > <td><a href="/cgi-bin/koha/admin/aqcontract.pl?op=delete_confirm&contractnumber=[% contract.contractnumber %]&booksellerid=[% contract.booksellerid %]">Delete</a></td> > </tr> > [% END %] >+ </tbody> > </table> > </div> > [% END %] >-- >1.7.7.3 > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8102
:
9608
|
9780
|
10183