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 [% Asset.css("css/datatables.css") | $raw %]
13 [% INCLUDE 'datatables.inc' %]
14 <script type="text/javascript">
16 $(document).ready(function() {
17 $("#printerst").dataTable($.extend(true, {}, dataTablesDefaults, {
19 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
21 "aaSorting": [[ 0, "asc" ]],
22 "sPaginationType": "four_button"
29 <body id="admin_printers" class="admin">
30 [% INCLUDE 'header.inc' %]
31 [% INCLUDE 'cat-search.inc' %]
33 <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 %]
34 [% IF ( add_validate ) %] <a href="/cgi-bin/koha/admin/printers.pl">Printers</a> › Printer added[% END %]
35 [% IF ( delete_confirm ) %] <a href="/cgi-bin/koha/admin/printers.pl">Printers</a> › Confirm deletion of printer '[% searchfield | html %]'[% END %]
36 [% IF ( delete_confirmed ) %] <a href="/cgi-bin/koha/admin/printers.pl">Printers</a> › Printer deleted[% END %]
37 [% IF ( else ) %]Printers[% END %]</div>
39 <div id="doc3" class="yui-t2">
47 [% IF ( searchfield ) %]
48 <h1>Modify printer</h1>
52 <form action="[% script_name | html %]" name="Aform" method="post" class="validated">
53 <input type="hidden" name="op" value="add_validate" />
54 [% IF ( searchfield ) %]
55 <input type="hidden" name="add" value="0" />
57 <input type="hidden" name="add" value="1" />
59 <fieldset class="rows">
60 <ol> [% IF ( searchfield ) %]
62 <span class="label">Printer name: </span>
63 <input type="hidden" name="printername" id="" value="[% searchfield | html %]" />[% searchfield | html %]
67 <label for="printername" class="required">Printer name: </label>
68 <input type="text" name="printername" id="printername" size="40" maxlength="40" class="required" required="required" />
69 <span class="required">Required</span>
73 <label for="printqueue" class="required">Queue: </label>
74 <input type="text" name="printqueue" id="printqueue" size="20" maxlength="20" value="[% printqueue | html %]" class="required" required="required" />
75 <span class="required">Required</span>
78 <label for="printtype">Type: </label>
79 <input type="text" name="printtype" id="printtype" size="20" maxlength="20" value="[% printtype | html %]" />
82 <fieldset class="action"><input type="submit" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/admin/printers.pl">Cancel</a></fieldset>
87 [% IF ( add_validate ) %]
88 <h3>Printer added</h3>
89 <form action="[% script_name | html %]" method="post">
90 <fieldset class="action"> <input type="submit" value="OK" /></fieldset>
94 [% IF ( delete_confirm ) %]
95 <div class="dialog alert">
96 <h3>Confirm deletion of printer <em>[% searchfield | html %]</em></h3>
100 <th scope="row">Printer: </th><td>[% searchfield | html %]</td>
103 <th scope="row">Queue: </th><td>[% printqueue | html %]</td>
106 <th scope="row">Type: </th><td>[% printtype | html %]</td>
110 <form action="[% script_name | html %]" method="post">
111 <input type="hidden" name="op" value="delete_confirmed" />
112 <input type="hidden" name="searchfield" value="[% searchfield | html %]" />
113 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
115 <form action="/cgi-bin/koha/admin/printers.pl" method="get">
116 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
121 [% IF ( delete_confirmed ) %]
122 <div class="dialog message">
123 <h3>Printer deleted</h3>
124 <form action="[% script_name | html %]" method="post">
125 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> OK</button>
133 <div id="toolbar" class="btn-toolbar">
134 <a class="btn btn-default btn-sm" id="newprinter" href="/cgi-bin/koha/admin/printers.pl?op=add_form"><i class="fa fa-plus"></i> New printer</a>
138 [% IF ( searchfield ) %]
139 You searched for [% searchfield | html %]</span>
143 <table id="printerst">
153 [% FOREACH loo IN loop %]
155 <td>[% loo.printername | html %]</td>
156 <td>[% loo.printqueue | html %]</td>
157 <td>[% loo.printtype | html %]</td>
158 <td class="actions"><a class="btn btn-default btn-xs" href="[% loo.script_name | html %]?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 | html %]?op=delete_confirm&searchfield=[% loo.printername |uri %]"><i class="fa fa-trash"></i> Delete</a></td>
162 </table>[% ELSE %]<div class="dialog message">No printers defined.</div>[% END %]
168 [% INCLUDE 'admin-menu.inc' %]
171 [% INCLUDE 'intranet-bottom.inc' %]