Bugzilla – Attachment 7733 Details for
Bug 5345
DataTables in Koha
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
uncertainprice.tt
0015-Bug-5345-DataTables-integration-in-acquisition-modul.patch (text/plain), 2.51 KB, created by
Jonathan Druart
on 2012-02-17 15:06:10 UTC
(
hide
)
Description:
uncertainprice.tt
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2012-02-17 15:06:10 UTC
Size:
2.51 KB
patch
obsolete
>From 19335090001af6380474bf92cfcfea8409b16423 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Fri, 17 Feb 2012 16:01:28 +0100 >Subject: [PATCH 15/16] Bug 5345: DataTables integration in acquisition module > [15] > >uncertainprice.tt >--- > .../prog/en/modules/acqui/uncertainprice.tt | 22 +++++++++++++++++++- > 1 files changed, 21 insertions(+), 1 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt >index 89ebfa8..ace529a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt >@@ -1,6 +1,22 @@ > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Orders with uncertain prices for Vendor [% booksellername %]</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 uncertainpricet = $("#uncertainpricet").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "aoColumnDefs": [ >+ { "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false }, >+ ], >+ "sPaginationType": "four_button" >+ } ) ); >+ }); >+ //]]> >+</script> > <script type="text/javascript" src="[% themelang %]/js/acq.js"></script> > <script type="text/javascript"> > //<![CDATA[ >@@ -68,7 +84,8 @@ function check(form) { > <form action="[% scriptname %]" method="post" name="uncertainprices"> > <input type="hidden" name="booksellerid" value="[% booksellerid %]" /> > <input type="hidden" name="op" value="validate" /> >- <table> >+ <table id="uncertainpricet"> >+ <thead> > <tr> > <th>basket</th> > <th>order</th> >@@ -77,6 +94,8 @@ function check(form) { > <th>price</th> > <th>quantity</th> > </tr> >+ </thead> >+ <tbody> > [% FOREACH uncertainpriceorder IN uncertainpriceorders %] > <tr> > <td> >@@ -105,6 +124,7 @@ function check(form) { > </td> > </tr> > [% END %] >+ </tbody> > </table> > <fieldset class="action"><input type="button" value="Save" onclick="check(this.form)" /></fieldset> > </form> >-- >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