From e31768aab1fa886c8c1ad64ec9a1927b2db79255 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 25 May 2012 16:27:40 +0200 Subject: [PATCH] Bug 8102: DataTables integration in acquisition module [14] supplier.tt http://bugs.koha-community.org/show_bug.cgi?id=8102 Signed-off-by: Katrin Fischer Corrected bug number. Signed-off-by: Paul Poulain --- acqui/supplier.pl | 1 + .../prog/en/modules/acqui/supplier.tt | 31 +++++++++++++++++-- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/acqui/supplier.pl b/acqui/supplier.pl index 0e2ab40302..0387d35bb7 100755 --- a/acqui/supplier.pl +++ b/acqui/supplier.pl @@ -111,6 +111,7 @@ if ( $op eq 'display' ) { basketcount => $supplier->{'basketcount'}, subscriptioncount => $supplier->{'subscriptioncount'}, contracts => $contracts, + dateformat => C4::Context->preference("dateformat"), ); } elsif ( $op eq 'delete' ) { # no further message needed for the user 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 25b52eab70..b5b9df2adf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt @@ -1,7 +1,12 @@ [% USE KohaDates %] [% INCLUDE 'doc-head-open.inc' %] Koha › Vendor [% bookselname %] + [% INCLUDE 'doc-head-close.inc' %] + +[% INCLUDE 'datatables-strings.inc' %] + + @@ -212,14 +234,18 @@ if (f.company.value == "") { [% IF ( contracts ) %]

Contract(s)

- +
+ - + + + + [% FOREACH contract IN contracts %] [% IF ( loop.even ) %][% ELSE %][% END %] [% END %] +
Name Description Start date End date     
@@ -232,6 +258,7 @@ if (f.company.value == "") { Delete
[% END %] -- 2.39.5