Bugzilla – Attachment 13148 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]
Bug 8943 - Add table sorting to labels
Bug-8943---Add-table-sorting-to-labels.patch (text/plain), 4.50 KB, created by
Kyle M Hall (khall)
on 2012-10-31 16:52:09 UTC
(
hide
)
Description:
Bug 8943 - Add table sorting to labels
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2012-10-31 16:52:09 UTC
Size:
4.50 KB
patch
obsolete
>From 89d8c23315c58d5fa52ddba5934fd00fc35d2ae3 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] Bug 8943 - Add table sorting to labels >Content-Type: text/plain; charset="utf-8" > >--- > .../prog/en/modules/labels/label-manage.tt | 56 +++++++++++++------- > 1 files 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 cd5abcf..8489980 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.2.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