Administrationsbereich mit Menüsystem versehen
[kivitendo-erp.git] / templates / webpages / admin / edit_printer.html
1 [%- USE LxERP -%][%- USE HTML -%][%- USE L -%]
2
3 [% INCLUDE 'common/flash.html' %]
4
5 [% IF !SELF.all_clients.size %]
6 <div class="error">
7  [% LxERP.t8("Error") %]:
8  [% LxERP.t8("No clients have been created yet.") %]
9 </div>
10
11 [%- ELSE %]
12
13 <h1>[% HTML.escape(title) %]</h1>
14
15 <form method="post">
16  [% L.hidden_tag("action", 'Admin/dispatch') %]
17  [% L.hidden_tag("printer.id", SELF.printer.id) %]
18
19  <table>
20   <tr>
21    <th align="right">[% LxERP.t8('Client') %]</th>
22    <td>[% L.select_tag("client.id", SELF.all_clients, default=SELF.client.id, title_key='name') %]</td>
23   <tr>
24
25   <tr>
26    <th align="right">[% LxERP.t8('Printer Description') %]</th>
27    <td>[% L.input_tag("printer.printer_description", SELF.printer.printer_description, size=30, class="initial_focus") %]</td>
28   <tr>
29   <tr>
30    <th align="right">[% LxERP.t8('Printer Command') %]</th>
31    <td>[% L.input_tag("printer.printer_command", SELF.printer.printer_command, size=30) %]</td>
32   </tr>
33   <tr>
34    <th align="right">[% LxERP.t8('Template Code') %]</th>
35    <td>[% L.input_tag("printer.template_code", SELF.printer.template_code, size=8) %]</td>
36   </tr>
37  </table>
38
39  <p>
40   <a href="[% SELF.url_for(action='list_printers', 'client.id'=SELF.client.id) %]">[% LxERP.t8("Back") %]</a>
41   [% L.submit_tag("action_save_printer", LxERP.t8("Save")) %]
42   [%- IF SELF.printer.id %]
43    [% L.submit_tag("action_delete_printer", LxERP.t8("Delete"), confirm=LxERP.t8("Are you sure?")) %]
44  [%- END %]
45  </p>
46
47 </form>
48
49 [% END %]