From d11522ed14d0101b9d751c1dd9f7a278e2710419 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 25 May 2012 16:27:40 +0200 Subject: [PATCH] [PATCH 14/16] Bug 5345: DataTables integration in acquisition module [14] supplier.tt http://bugs.koha-community.org/show_bug.cgi?id=8102 --- 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 0e2ab40..0387d35 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 25b52ea..b5b9df2 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 %] -- 1.7.7.3