|
Lines 78-83
Link Here
|
| 78 |
}; |
78 |
}; |
| 79 |
//]]> |
79 |
//]]> |
| 80 |
</script> |
80 |
</script> |
|
|
81 |
|
| 82 |
<link rel="stylesheet" type="text/css" href="/intranet-tmpl/prog/en/css/datatables.css" /> |
| 83 |
<script type="text/javascript" src="/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.dataTables.min.js"></script> |
| 84 |
[% INCLUDE 'datatables-strings.inc' %] |
| 85 |
<script type="text/javascript" src="/intranet-tmpl/prog/en/js/datatables.js"></script> |
| 86 |
<script type="text/javascript" id="js"> |
| 87 |
$(document).ready(function() { |
| 88 |
$("#labels-table").dataTable($.extend(true, {}, dataTablesDefaults, { |
| 89 |
"sPaginationType": "four_button", |
| 90 |
"aaSorting": [[ 1, "asc" ]], |
| 91 |
})); |
| 92 |
}); |
| 93 |
</script> |
| 94 |
|
| 81 |
</head> |
95 |
</head> |
| 82 |
<body id="labels_label-manage" class="tools labels"> |
96 |
<body id="labels_label-manage" class="tools labels"> |
| 83 |
[% INCLUDE 'header.inc' %] |
97 |
[% INCLUDE 'header.inc' %] |
|
Lines 99-125
Link Here
|
| 99 |
[% IF ( table_loop ) %] |
113 |
[% IF ( table_loop ) %] |
| 100 |
<form name="layouts" action="/cgi-bin/koha/label-manage.pl?label_element=[% label_element %]"> |
114 |
<form name="layouts" action="/cgi-bin/koha/label-manage.pl?label_element=[% label_element %]"> |
| 101 |
<h2>Currently Available [% label_element_title %]</h2> |
115 |
<h2>Currently Available [% label_element_title %]</h2> |
| 102 |
<table> |
116 |
<table id="labels-table"> |
| 103 |
[% FOREACH table_loo IN table_loop %] |
117 |
[% FOREACH table_loo IN table_loop %] |
| 104 |
[% IF ( table_loo.header_fields ) %] |
118 |
[% IF ( table_loo.header_fields ) %] |
| 105 |
<tr> |
119 |
<thead> |
| 106 |
[% FOREACH header_field IN table_loo.header_fields %] |
120 |
<tr> |
| 107 |
<th>[% header_field.field_label %]</th> |
121 |
[% FOREACH header_field IN table_loo.header_fields %] |
| 108 |
[% END %] |
122 |
<th>[% header_field.field_label %]</th> |
| 109 |
</tr> |
123 |
[% END %] |
| 110 |
[% ELSE %] |
124 |
</tr> |
| 111 |
<tr> |
125 |
</thead> |
| 112 |
[% FOREACH text_field IN table_loo.text_fields %] |
126 |
[% ELSE %] |
| 113 |
[% IF ( text_field.select_field ) %] |
127 |
<tr> |
| 114 |
<td align="center"><input type="checkbox" name="action" value="[% text_field.field_value %]" /></td> |
128 |
[% FOREACH text_field IN table_loo.text_fields %] |
| 115 |
[% ELSIF ( text_field.field_value ) %] |
129 |
[% IF ( text_field.select_field ) %] |
| 116 |
<td>[% text_field.field_value %]</td> |
130 |
<td align="center"><input type="checkbox" name="action" value="[% text_field.field_value %]" /></td> |
| 117 |
[% ELSE %] |
131 |
[% ELSIF ( text_field.field_value ) %] |
| 118 |
<td> </td> |
132 |
<td>[% text_field.field_value %]</td> |
| 119 |
[% END %] |
133 |
[% ELSE %] |
| 120 |
[% END %] |
134 |
<td> </td> |
| 121 |
</tr> |
135 |
[% END %] |
| 122 |
[% END %] |
136 |
[% END %] |
|
|
137 |
</tr> |
| 138 |
[% END %] |
| 123 |
[% END %] |
139 |
[% END %] |
| 124 |
</table> |
140 |
</table> |
| 125 |
<fieldset class="action"> |
141 |
<fieldset class="action"> |
| 126 |
- |
|
|