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' %]
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 class="main container-fluid">
41 <div class="col-sm-10 col-sm-push-2">
46 [% IF ( searchfield ) %]
47 <h1>Modify printer</h1>
51 <form action="[% script_name | html %]" name="Aform" method="post" class="validated">
52 <input type="hidden" name="op" value="add_validate" />
53 [% IF ( searchfield ) %]
54 <input type="hidden" name="add" value="0" />
56 <input type="hidden" name="add" value="1" />
58 <fieldset class="rows">
59 <ol> [% IF ( searchfield ) %]
61 <span class="label">Printer name: </span>
62 <input type="hidden" name="printername" id="" value="[% searchfield | html %]" />[% searchfield | html %]
66 <label for="printername" class="required">Printer name: </label>
67 <input type="text" name="printername" id="printername" size="40" maxlength="40" class="required" required="required" />
68 <span class="required">Required</span>
72 <label for="printqueue" class="required">Queue: </label>
73 <input type="text" name="printqueue" id="printqueue" size="20" maxlength="20" value="[% printqueue | html %]" class="required" required="required" />
74 <span class="required">Required</span>
77 <label for="printtype">Type: </label>
78 <input type="text" name="printtype" id="printtype" size="20" maxlength="20" value="[% printtype | html %]" />
81 <fieldset class="action"><input type="submit" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/admin/printers.pl">Cancel</a></fieldset>
86 [% IF ( add_validate ) %]
87 <h3>Printer added</h3>
88 <form action="[% script_name | html %]" method="post">
89 <fieldset class="action"> <input type="submit" value="OK" /></fieldset>
93 [% IF ( delete_confirm ) %]
94 <div class="dialog alert">
95 <h3>Confirm deletion of printer <em>[% searchfield | html %]</em></h3>
99 <th scope="row">Printer: </th><td>[% searchfield | html %]</td>
102 <th scope="row">Queue: </th><td>[% printqueue | html %]</td>
105 <th scope="row">Type: </th><td>[% printtype | html %]</td>
109 <form action="[% script_name | html %]" method="post">
110 <input type="hidden" name="op" value="delete_confirmed" />
111 <input type="hidden" name="searchfield" value="[% searchfield | html %]" />
112 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
114 <form action="/cgi-bin/koha/admin/printers.pl" method="get">
115 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
120 [% IF ( delete_confirmed ) %]
121 <div class="dialog message">
122 <h3>Printer deleted</h3>
123 <form action="[% script_name | html %]" method="post">
124 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> OK</button>
132 <div id="toolbar" class="btn-toolbar">
133 <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>
137 [% IF ( searchfield ) %]
138 You searched for [% searchfield | html %]</span>
142 <table id="printerst">
152 [% FOREACH loo IN loop %]
154 <td>[% loo.printername | html %]</td>
155 <td>[% loo.printqueue | html %]</td>
156 <td>[% loo.printtype | html %]</td>
157 <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>
161 </table>[% ELSE %]<div class="dialog message">No printers defined.</div>[% END %]
165 </div> <!-- /.col-sm-10.col-sm-push-2 -->
167 <div class="col-sm-2 col-sm-pull-10">
169 [% INCLUDE 'admin-menu.inc' %]
171 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
172 </div> <!-- /.row -->
174 [% INCLUDE 'intranet-bottom.inc' %]