Bugzilla – Attachment 17079 Details for
Bug 8943
Add table sorting to labels
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 8943 - Add table sorting to labels
PASSED-QA-Bug-8943---Add-table-sorting-to-labels.patch (text/plain), 4.63 KB, created by
Katrin Fischer
on 2013-03-31 08:42:31 UTC
(
hide
)
Description:
[PASSED QA] Bug 8943 - Add table sorting to labels
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2013-03-31 08:42:31 UTC
Size:
4.63 KB
patch
obsolete
>From df3d0ce2195e6e35e4bd43647d30590534d95f39 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Thu, 18 Oct 2012 10:04:44 -0400 >Subject: [PATCH] [PASSED QA] Bug 8943 - Add table sorting to labels > >Signed-off-by: Melia Meggs <melia@bywatersolutions.com> >Signed-off by: Nora Blake <nblake@masslibsystem.org> > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >--- > .../prog/en/modules/labels/label-manage.tt | 56 +++++++++++++------- > 1 file changed, 36 insertions(+), 20 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt >index db76c12..d685640 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt >@@ -78,6 +78,20 @@ > }; > //]]> > </script> >+ >+<link rel="stylesheet" type="text/css" href="/intranet-tmpl/prog/en/css/datatables.css" /> >+<script type="text/javascript" src="/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.dataTables.min.js"></script> >+[% INCLUDE 'datatables-strings.inc' %] >+<script type="text/javascript" src="/intranet-tmpl/prog/en/js/datatables.js"></script> >+<script type="text/javascript" id="js"> >+ $(document).ready(function() { >+ $("#labels-table").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "sPaginationType": "four_button", >+ "aaSorting": [[ 1, "asc" ]], >+ })); >+ }); >+</script> >+ > </head> > <body id="labels_label-manage" class="tools labels"> > [% INCLUDE 'header.inc' %] >@@ -99,27 +113,29 @@ > [% IF ( table_loop ) %] > <form name="layouts" action="/cgi-bin/koha/label-manage.pl?label_element=[% label_element %]"> > <h2>Currently Available [% label_element_title %]</h2> >- <table> >+ <table id="labels-table"> > [% FOREACH table_loo IN table_loop %] >- [% IF ( table_loo.header_fields ) %] >- <tr> >- [% FOREACH header_field IN table_loo.header_fields %] >- <th>[% header_field.field_label %]</th> >- [% END %] >- </tr> >- [% ELSE %] >- <tr> >- [% FOREACH text_field IN table_loo.text_fields %] >- [% IF ( text_field.select_field ) %] >- <td align="center"><input type="checkbox" name="action" value="[% text_field.field_value %]" /></td> >- [% ELSIF ( text_field.field_value ) %] >- <td>[% text_field.field_value %]</td> >- [% ELSE %] >- <td> </td> >- [% END %] >- [% END %] >- </tr> >- [% END %] >+ [% IF ( table_loo.header_fields ) %] >+ <thead> >+ <tr> >+ [% FOREACH header_field IN table_loo.header_fields %] >+ <th>[% header_field.field_label %]</th> >+ [% END %] >+ </tr> >+ </thead> >+ [% ELSE %] >+ <tr> >+ [% FOREACH text_field IN table_loo.text_fields %] >+ [% IF ( text_field.select_field ) %] >+ <td align="center"><input type="checkbox" name="action" value="[% text_field.field_value %]" /></td> >+ [% ELSIF ( text_field.field_value ) %] >+ <td>[% text_field.field_value %]</td> >+ [% ELSE %] >+ <td> </td> >+ [% END %] >+ [% END %] >+ </tr> >+ [% END %] > [% END %] > </table> > <fieldset class="action"> >-- >1.7.9.5
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 8943
:
12912
|
13148
|
13180
|
13299
|
15992
|
15993
|
15994
| 17079 |
17080