View | Details | Raw Unified | Return to bug 5345
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt (-11 / +20 lines)
Lines 1-6 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Basket grouping for [% booksellername |html %]</title>
2
<title>Koha &rsaquo; Basket grouping for [% booksellername |html %]</title>
3
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
5
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
6
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
4
<script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
7
<script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
5
[% IF ( grouping ) %]
8
[% IF ( grouping ) %]
6
<script type="text/javascript" src="[% yuipath %]/yahoo-dom-event/yahoo-dom-event.js"></script>
9
<script type="text/javascript" src="[% yuipath %]/yahoo-dom-event/yahoo-dom-event.js"></script>
Lines 100-105 function submitForm(form) { Link Here
100
  //  $("#toolbar").empty();
103
  //  $("#toolbar").empty();
101
    yuiToolbar();
104
    yuiToolbar();
102
    $("#basket_groups > ul").tabs();
105
    $("#basket_groups > ul").tabs();
106
107
    $("table").dataTable($.extend(true, {}, dataTablesDefaults, {
108
        "aoColumnDefs": [
109
            { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
110
        ],
111
        "bAutoWidth": false,
112
        "bPaginate": false,
113
        "bInfo": false,
114
        "bFilter": false,
115
    } ));
116
103
 });
117
 });
104
118
105
// YUI Toolbar Functions
119
// YUI Toolbar Functions
Lines 250-259 function yuiToolbar() { Link Here
250
        [% ELSE %]<li><a href="#closed">Closed</a></li>[% END %]
264
        [% ELSE %]<li><a href="#closed">Closed</a></li>[% END %]
251
    </ul>
265
    </ul>
252
    <div id="opened">
266
    <div id="opened">
253
		<table>
267
		<table id="basket_group_opened">
254
			<thead>
268
			<thead>
255
				<tr>
269
				<tr>
256
                    <th>Basket group</th><th colspan="3">Action</th>
270
                    <th>Basket group</th><th>Action</th>
257
				</tr>
271
				</tr>
258
			</thead>
272
			</thead>
259
			<tbody>
273
			<tbody>
Lines 267-279 function yuiToolbar() { Link Here
267
												[% END %]</a>
281
												[% END %]</a>
268
						</td>
282
						</td>
269
							<td>
283
							<td>
284
                              <span>
270
								<input type="button" onclick="closeandprint([% basketgroup.id %])" value="Close and Print" />
285
								<input type="button" onclick="closeandprint([% basketgroup.id %])" value="Close and Print" />
271
							</td>
272
							<td>
273
								<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="add" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Edit" /></form>
286
								<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="add" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Edit" /></form>
274
							</td>
275
							<td>
276
								<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="delete" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Delete" /></form>
287
								<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="delete" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Delete" /></form>
288
                              </span>
277
							</td>
289
							</td>
278
					</tr>
290
					</tr>
279
				[% END %]
291
				[% END %]
Lines 282-291 function yuiToolbar() { Link Here
282
		</table>
294
		</table>
283
    </div>
295
    </div>
284
    <div id="closed">
296
    <div id="closed">
285
		<table>
297
		<table id="basket_group_closed">
286
			<thead>
298
			<thead>
287
				<tr>
299
				<tr>
288
                    <th>Basket group</th><th colspan="3">Action</th>
300
                    <th>Basket group</th><th>Action</th>
289
				</tr>
301
				</tr>
290
			</thead>
302
			</thead>
291
			<tbody>
303
			<tbody>
Lines 301-308 function yuiToolbar() { Link Here
301
					</td>
313
					</td>
302
					<td>
314
					<td>
303
							<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="reopen" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Reopen" /></form>
315
							<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="reopen" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Reopen" /></form>
304
						</td>
305
						<td>
306
							<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="print" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Print" /></form>
316
							<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="print" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Print" /></form>
307
						</td>
317
						</td>
308
				</tr>
318
				</tr>
309
- 

Return to bug 5345