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

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (+4 lines)
Lines 706-711 fieldset { Link Here
706
                text-align: left;
706
                text-align: left;
707
            }
707
            }
708
        }
708
        }
709
710
        .action {
711
            margin-left: 1em;
712
        }
709
    }
713
    }
710
714
711
    &.rows {
715
    &.rows {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-home.tt (-1 / +1 lines)
Lines 21-27 Link Here
21
				<fieldset class="brief">
21
				<fieldset class="brief">
22
				<ol>
22
				<ol>
23
					<li><label for="barcode">Barcode: </label>
23
					<li><label for="barcode">Barcode: </label>
24
					<input type="text" name="barcode" id="barcode" class="focus" />
24
                        <input type="text" name="barcode" id="barcode" class="focus" required="required" />
25
					</li>
25
					</li>
26
				</ol>
26
				</ol>
27
				<fieldset class="action"><input type="submit" value="View spine label" /></fieldset>
27
				<fieldset class="action"><input type="submit" value="View spine label" /></fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt (-20 / +24 lines)
Lines 15-48 Link Here
15
15
16
	[% IF ( BarcodeNotFound ) %]
16
	[% IF ( BarcodeNotFound ) %]
17
		<body id="labels_spinelabel-print" class="tools labels">
17
		<body id="labels_spinelabel-print" class="tools labels">
18
            <p>The barcode [% Barcode | html %] was not found.</p>
18
            <div class="dialog message">The barcode [% Barcode | html %] was not found.</div>
19
            <p><a href="spinelabel-home.pl">Return to spine label printer</a></p>
19
            <div id="print_button" class="noprint">
20
                <button class="btn btn-default close-window">Close</button>
21
            </div>
20
	[% ELSE %]
22
	[% ELSE %]
21
            <body id="labels_spinelabel-print" class="tools labels">
23
            <body id="labels_spinelabel-print" class="tools labels">
22
            <div id="spinelabel">
24
            <div id="spinelabel">
23
				[% content | $raw %]
25
				[% content | $raw %]
24
            </div>
26
            </div>
25
            <div id="print_button" class="noprint">
27
            <div id="print_button" class="noprint">
26
                <button class="btn btn-default print-label" onclick="window.print()"><i class="fa fa-print"></i> Print this label</button>
28
                <button class="btn btn-default print-label"><i class="fa fa-print"></i> Print this label</button>
27
            </div>
29
            </div>
28
	[% END %]
30
	[% END %]
29
31
30
[% IF ( IntranetUserJS ) %]
32
[% Asset.js( "lib/jquery/jquery-2.2.3.min.js" ) | $raw %]
31
    [% Asset.js( "lib/jquery/jquery-2.2.3.min.js" ) | $raw %]
33
[% Asset.js( "lib/jquery/jquery-migrate-1.3.0.min.js" ) | $raw %]
32
    [% Asset.js( "lib/jquery/jquery-migrate-1.3.0.min.js" ) | $raw %]
34
[% IF ( autoprint ) %]
33
    [% IF ( autoprint ) %]
35
    [% INCLUDE 'slip-print.inc' #printThenClose %]
34
        [% INCLUDE 'slip-print.inc' #printThenClose %]
35
    [% END %]
36
    <script>
37
        [% IntranetUserJS | $raw %]
38
        $(document).ready(function(){
39
            $(".print-label").on("click", function(e){
40
                e.preventDefault();
41
                window.print();
42
                window.close();
43
            });
44
        });
45
    </script>
46
[% END %]
36
[% END %]
37
<script>
38
    [% IntranetUserJS | $raw %]
39
    $(document).ready(function(){
40
        $(".print-label").on("click", function(e){
41
            e.preventDefault();
42
            window.print();
43
            window.close();
44
        });
45
46
        $(".close-window").on("click", function(e){
47
            e.preventDefault();
48
            window.close();
49
        });
50
    });
51
</script>
47
52
48
[% INCLUDE 'popup-bottom.inc' %]
53
[% INCLUDE 'popup-bottom.inc' %]
49
- 

Return to bug 23464