3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Administration ›
5 [% IF ( add_form ) %][% IF ( searchfield ) %] Printers › Modify printer '[% searchfield | html %]'[% ELSE %] Printers › New printer[% END %][% END %]
6 [% IF ( add_validate ) %] Printers › Printer added[% END %]
7 [% IF ( delete_confirm ) %] Printers › Confirm deletion of printer '[% searchfield | html %]'[% END %]
8 [% IF ( delete_confirmed ) %] Printers › Printer deleted[% END %]
9 [% IF ( else ) %]Printers[% END %]</title>
10 [% INCLUDE 'doc-head-close.inc' %]
12 [% INCLUDE 'datatables.inc' %]
15 $(document).ready(function() {
16 $("#printerst").dataTable($.extend(true, {}, dataTablesDefaults, {
18 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
20 "aaSorting": [[ 0, "asc" ]],
21 "sPaginationType": "full"
28 <body id="admin_printers" class="admin">
29 [% INCLUDE 'header.inc' %]
30 [% INCLUDE 'cat-search.inc' %]
32 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › [% IF ( add_form ) %][% IF ( searchfield ) %] <a href="/cgi-bin/koha/admin/printers.pl">Printers</a> › Modify printer '[% searchfield | html %]'[% ELSE %] <a href="/cgi-bin/koha/admin/printers.pl">Printers</a> › New printer[% END %][% END %]
33 [% IF ( add_validate ) %] <a href="/cgi-bin/koha/admin/printers.pl">Printers</a> › Printer added[% END %]
34 [% IF ( delete_confirm ) %] <a href="/cgi-bin/koha/admin/printers.pl">Printers</a> › Confirm deletion of printer '[% searchfield | html %]'[% END %]
35 [% IF ( delete_confirmed ) %] <a href="/cgi-bin/koha/admin/printers.pl">Printers</a> › Printer deleted[% END %]
36 [% IF ( else ) %]Printers[% END %]</div>
38 <div class="main container-fluid">
40 <div class="col-sm-10 col-sm-push-2">
45 [% IF ( searchfield ) %]
46 <h1>Modify printer</h1>
50 <form action="[% script_name | html %]" name="Aform" method="post" class="validated">
51 <input type="hidden" name="op" value="add_validate" />
52 [% IF ( searchfield ) %]
53 <input type="hidden" name="add" value="0" />
55 <input type="hidden" name="add" value="1" />
57 <fieldset class="rows">
58 <ol> [% IF ( searchfield ) %]
60 <span class="label">Printer name: </span>
61 <input type="hidden" name="printername" id="" value="[% searchfield | html %]" />[% searchfield | html %]
65 <label for="printername" class="required">Printer name: </label>
66 <input type="text" name="printername" id="printername" size="40" maxlength="40" class="required" required="required" />
67 <span class="required">Required</span>
71 <label for="printqueue" class="required">Queue: </label>
72 <input type="text" name="printqueue" id="printqueue" size="20" maxlength="20" value="[% printqueue | html %]" class="required" required="required" />
73 <span class="required">Required</span>
76 <label for="printtype">Type: </label>
77 <input type="text" name="printtype" id="printtype" size="20" maxlength="20" value="[% printtype | html %]" />
80 <fieldset class="action"><input type="submit" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/admin/printers.pl">Cancel</a></fieldset>
85 [% IF ( add_validate ) %]
86 <h3>Printer added</h3>
87 <form action="[% script_name | html %]" method="post">
88 <fieldset class="action"> <input type="submit" value="OK" /></fieldset>
92 [% IF ( delete_confirm ) %]
93 <div class="dialog alert">
94 <h3>Confirm deletion of printer <em>[% searchfield | html %]</em></h3>
98 <th scope="row">Printer: </th><td>[% searchfield | html %]</td>
101 <th scope="row">Queue: </th><td>[% printqueue | html %]</td>
104 <th scope="row">Type: </th><td>[% printtype | html %]</td>
108 <form action="[% script_name | html %]" method="post">
109 <input type="hidden" name="op" value="delete_confirmed" />
110 <input type="hidden" name="searchfield" value="[% searchfield | html %]" />
111 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
113 <form action="/cgi-bin/koha/admin/printers.pl" method="get">
114 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
119 [% IF ( delete_confirmed ) %]
120 <div class="dialog message">
121 <h3>Printer deleted</h3>
122 <form action="[% script_name | html %]" method="post">
123 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> OK</button>
131 <div id="toolbar" class="btn-toolbar">
132 <a class="btn btn-default" id="newprinter" href="/cgi-bin/koha/admin/printers.pl?op=add_form"><i class="fa fa-plus"></i> New printer</a>
136 [% IF ( searchfield ) %]
137 You searched for [% searchfield | html %]</span>
141 <table id="printerst">
151 [% FOREACH loo IN loop %]
153 <td>[% loo.printername | html %]</td>
154 <td>[% loo.printqueue | html %]</td>
155 <td>[% loo.printtype | html %]</td>
156 <td class="actions"><a class="btn btn-default btn-xs" href="[% loo.script_name | url %]?op=add_form&searchfield=[% loo.printername |uri %]"><i class="fa fa-pencil"></i> Edit</a> <a class="btn btn-default btn-xs" href="[% loo.script_name | url %]?op=delete_confirm&searchfield=[% loo.printername |uri %]"><i class="fa fa-trash"></i> Delete</a></td>
160 </table>[% ELSE %]<div class="dialog message">No printers defined.</div>[% END %]
164 </div> <!-- /.col-sm-10.col-sm-push-2 -->
166 <div class="col-sm-2 col-sm-pull-10">
168 [% INCLUDE 'admin-menu.inc' %]
170 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
171 </div> <!-- /.row -->
173 [% INCLUDE 'intranet-bottom.inc' %]