Bugzilla – Attachment 7724 Details for
Bug 5345
DataTables in Koha
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
histsearch.tt
0006-Bug-5345-DataTables-integration-in-acquisition-modul.patch (text/plain), 2.27 KB, created by
Jonathan Druart
on 2012-02-17 15:03:53 UTC
(
hide
)
Description:
histsearch.tt
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2012-02-17 15:03:53 UTC
Size:
2.27 KB
patch
obsolete
>From 936295ad222b33f26cbf339db6625da83d17123d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Fri, 17 Feb 2012 15:56:51 +0100 >Subject: [PATCH 06/16] Bug 5345: DataTables integration in acquisition module > [6] > >histsearch.tt >--- > .../prog/en/modules/acqui/histsearch.tt | 20 ++++++++++++++++++-- > 1 files changed, 18 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt >index 3385fb3..1c04016 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt >@@ -1,7 +1,20 @@ > [% USE KohaDates %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Acquisitions › [% IF ( suggestions_loop ) %]Orders search › Search Results[% ELSE %]Order search[% END %]</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 histsearcht = $("#histsearcht").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "sPaginationType": "four_button" >+ } ) ); >+ }); >+ //]]> >+</script> > [% INCLUDE 'calendar.inc' %] > </head> > <body> >@@ -61,7 +74,8 @@ > </form>[% END %] > [% IF ( suggestions_loop ) %]<h1>Search Results</h1> > <div id="acqui_histsearch"> >- <table> >+ <table id="histsearcht"> >+ <thead> > <tr> > <th>Basket</th> > <th>Basket group</th> >@@ -73,7 +87,8 @@ > <th>Quantity ordered</th> > <th>Unit cost</th> > </tr> >- >+ </thead> >+ <tbody> > [% FOREACH suggestions_loo IN suggestions_loop %] > <tr> > <td>[% suggestions_loo.basketname %] (<a href="basket.pl?basketno=[% suggestions_loo.basketno %]">[% suggestions_loo.basketno %]</a>)</td> >@@ -93,6 +108,7 @@ > <td>[% suggestions_loo.ecost %]</td> > </tr> > [% END %] >+ </tbody> > </table> > </div>[% ELSE %][% 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 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