Bugzilla – Attachment 7730 Details for
Bug 5345
DataTables in Koha
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
parcels.tt
0012-Bug-5345-DataTables-integration-in-acquisition-modul.patch (text/plain), 3.84 KB, created by
Jonathan Druart
on 2012-02-17 15:05:17 UTC
(
hide
)
Description:
parcels.tt
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2012-02-17 15:05:17 UTC
Size:
3.84 KB
patch
obsolete
>From 9453b89df13c957a5488763d25ed423328e2d82c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Fri, 17 Feb 2012 15:58:54 +0100 >Subject: [PATCH 12/16] Bug 5345: DataTables integration in acquisition module > [12] > >parcels.tt >--- > .../intranet-tmpl/prog/en/modules/acqui/parcels.tt | 73 ++++++++++++-------- > 1 files changed, 45 insertions(+), 28 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcels.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcels.tt >index a7d704d..462773c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcels.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcels.tt >@@ -1,7 +1,20 @@ > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Acquisitions › Receive shipment from vendor [% name %]</title> >+<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> > [% INCLUDE 'doc-head-close.inc' %] > [% INCLUDE 'calendar.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 parcelst = $("#parcelst").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "sPaginationType": "four_button" >+ } ) ); >+ }); >+ //]]> >+</script> > </head> > <body> > [% INCLUDE 'header.inc' %] >@@ -22,7 +35,8 @@ > <div id="resultlist"> > <!-- Search Results Table --> > >-<table class="small"> >+<table class="small" id="parcelst"> >+ <thead> > <tr> > <th>Line</th> > <th>Date Received</th> >@@ -31,34 +45,37 @@ > <th>Biblio count</th> > <th>Items expected</th> > </tr> >-<!-- Actual Search Results --> >-[% FOREACH searchresult IN searchresults %] >- [% UNLESS ( loop.odd ) %] >- <tr class="highlight"> >- [% ELSE %] >- <tr> >+ </thead> >+ <tbody> >+ <!-- Actual Search Results --> >+ [% FOREACH searchresult IN searchresults %] >+ [% UNLESS ( loop.odd ) %] >+ <tr class="highlight"> >+ [% ELSE %] >+ <tr> >+ [% END %] >+ <td> >+ [% searchresult.number %] >+ </td> >+ <td> >+ <a href="/cgi-bin/koha/acqui/parcel.pl?type=intra&supplierid=[% supplierid |url %]&datereceived=[% searchresult.raw_datereceived |url %][% IF ( searchresult.code ) %]&invoice=[% searchresult.code |url %][% END %]"> >+ [% searchresult.datereceived %]</a> >+ </td> >+ <td> >+ [% IF ( searchresult.code ) %][% searchresult.code %][% ELSE %]<acronym title="not available">n/a</acronym>[% END %] >+ </td> >+ <td> >+ [% searchresult.reccount %] >+ </td> >+ <td> >+ [% searchresult.bibcount %] >+ </td> >+ <td> >+ [% searchresult.itemcount %] >+ </td> >+ </tr> > [% END %] >- <td> >- [% searchresult.number %] >- </td> >- <td> >- <a href="/cgi-bin/koha/acqui/parcel.pl?type=intra&supplierid=[% supplierid |url %]&datereceived=[% searchresult.raw_datereceived |url %][% IF ( searchresult.code ) %]&invoice=[% searchresult.code |url %][% END %]"> >- [% searchresult.datereceived %]</a> >- </td> >- <td> >- [% IF ( searchresult.code ) %][% searchresult.code %][% ELSE %]<acronym title="not available">n/a</acronym>[% END %] >- </td> >- <td> >- [% searchresult.reccount %] >- </td> >- <td> >- [% searchresult.bibcount %] >- </td> >- <td> >- [% searchresult.itemcount %] >- </td> >- </tr> >-[% END %] >+ </tbody> > </table> > > <div id="resultnumber"> >-- >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 5345
:
7719
|
7720
|
7721
|
7722
|
7723
|
7724
|
7725
|
7726
|
7727
|
7728
|
7729
|
7730
|
7731
|
7732
|
7733
|
7734
|
8039
|
8040
|
8057
|
8058
|
8292
|
8830
|
8831
|
8833
|
8834
|
8835
|
8836
|
8837
|
9519
|
9601
|
9602