Bugzilla – Attachment 9971 Details for
Bug 8101
DataTables in Acquisision module: orderreceive.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
orderreceive.tt
0001-PATCH-1-1-Bug-5345-DataTables-integration-in-acquisi.patch (text/plain), 2.29 KB, created by
Jonathan Druart
on 2012-06-07 11:50:33 UTC
(
hide
)
Description:
orderreceive.tt
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2012-06-07 11:50:33 UTC
Size:
2.29 KB
patch
obsolete
>From b2b31389956429581ef103781c75daefd2e9fc65 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Thu, 7 Jun 2012 13:50:48 +0200 >Subject: [PATCH 1/1] [PATCH 1/1] Bug 5345: DataTables integration in > acquisition module [11] > > orderreceive.tt >--- > .../prog/en/modules/acqui/orderreceive.tt | 19 ++++++++++++++++--- > 1 files changed, 16 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >index 821dcd3..a1158a8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >@@ -1,8 +1,12 @@ > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Acquisitions › Receipt summary for : [% name %] [% IF ( invoice ) %]invoice, [% invoice %][% END %]</title> >+<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> > [% INCLUDE 'doc-head-close.inc' %] > [% INCLUDE 'additem.js.inc' %] > <script type="text/javascript" src="[% themelang %]/js/additem.js"> </script> >+<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[ > function Check(form) { >@@ -95,6 +99,11 @@ > CheckNItems($(this).val()); > }); > [% END %] >+ >+ var orderlistt = $("#orderlistt").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "sPaginationType": "four_button" >+ } ) ); >+ > }); > //]]> > </script> >@@ -306,15 +315,18 @@ > </fieldset></div> </form> > [% ELSE %] > <div id="acqui_acquire_orderlist"> >- <table> >- <tr> >+ <table id="orderlistt"> >+ <thead> >+ <tr> > <th>Basket</th> > <th>ISBN</th> > <th>Title</th> > <th>Author</th> > <th>Qty</th> > <th>Received</th> >- </tr> >+ </tr> >+ </thead> >+ <tbody> > [% FOREACH loo IN loop %] > <tr> > <td>[% loo.basketno %]</td> >@@ -325,6 +337,7 @@ > <td>[% loo.quantityreceived %]</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 8101
:
9607
|
9614
| 9971