Revision 3bb9c72f
Von Hans P. Schlaepfer vor fast 4 Jahren hinzugefügt
templates/webpages/admin/edit_printer.html | ||
---|---|---|
2 | 2 |
[% USE HTML %] |
3 | 3 |
[% USE L %] |
4 | 4 |
|
5 |
<h1>[% HTML.escape(title) %]</h1> |
|
6 |
|
|
7 |
<div class="wrapper"> |
|
5 | 8 |
|
6 | 9 |
[% INCLUDE 'common/flash.html' %] |
7 | 10 |
|
8 | 11 |
[% IF !SELF.all_clients.size %] |
9 |
<div class="error"> |
|
10 |
[% LxERP.t8("Error") %]: |
|
11 |
[% LxERP.t8("No clients have been created yet.") %] |
|
12 |
<div class="message message_error"> |
|
13 |
<b>[% LxERP.t8("Error") %]:</b> [% LxERP.t8("No clients have been created yet.") %] |
|
12 | 14 |
</div> |
13 | 15 |
|
14 |
[%- ELSE %] |
|
15 |
|
|
16 |
<h1>[% HTML.escape(title) %]</h1> |
|
16 |
[% ELSE %] |
|
17 | 17 |
|
18 | 18 |
<form method="post"> |
19 |
[% L.hidden_tag("action", 'Admin/dispatch') %] |
|
20 |
[% L.hidden_tag("printer.id", SELF.printer.id) %] |
|
21 |
|
|
22 |
<table> |
|
23 |
<tr> |
|
24 |
<th align="right">[% LxERP.t8('Client') %]</th> |
|
25 |
<td>[% L.select_tag("client.id", SELF.all_clients, default=SELF.client.id, title_key='name') %]</td> |
|
26 |
<tr> |
|
27 |
|
|
28 |
<tr> |
|
29 |
<th align="right">[% LxERP.t8('Printer Description') %]</th> |
|
30 |
<td>[% L.input_tag("printer.printer_description", SELF.printer.printer_description, size=30, class="initial_focus") %]</td> |
|
31 |
<tr> |
|
32 |
<tr> |
|
33 |
<th align="right">[% LxERP.t8('Printer Command') %]</th> |
|
34 |
<td>[% L.input_tag("printer.printer_command", SELF.printer.printer_command, size=30) %]</td> |
|
35 |
</tr> |
|
36 |
<tr> |
|
37 |
<th align="right">[% LxERP.t8('Template Code') %]</th> |
|
38 |
<td>[% L.input_tag("printer.template_code", SELF.printer.template_code, size=8) %]</td> |
|
39 |
</tr> |
|
40 |
</table> |
|
41 |
|
|
42 |
<p> |
|
43 |
<a href="[% SELF.url_for(action='list_printers', 'client.id'=SELF.client.id) %]">[% LxERP.t8("Back") %]</a> |
|
44 |
[% L.submit_tag("action_save_printer", LxERP.t8("Save")) %] |
|
45 |
[%- IF SELF.printer.id %] |
|
46 |
[% L.submit_tag("action_delete_printer", LxERP.t8("Delete"), confirm=LxERP.t8("Are you sure?")) %] |
|
47 |
[%- END %] |
|
48 |
</p> |
|
19 |
[% L.hidden_tag("action", 'Admin/dispatch') %] |
|
20 |
[% L.hidden_tag("printer.id", SELF.printer.id) %] |
|
21 |
|
|
22 |
<table class="tbl-horizontal"> |
|
23 |
<tbody> |
|
24 |
<tr> |
|
25 |
<th>[% LxERP.t8('Client') %]</th> |
|
26 |
<td>[% L.select_tag("client.id", SELF.all_clients, default=SELF.client.id, title_key='name') %]</td> |
|
27 |
</tr> |
|
28 |
<tr> |
|
29 |
<th>[% LxERP.t8('Printer Description') %]</th> |
|
30 |
<td>[% L.input_tag("printer.printer_description", SELF.printer.printer_description, size=30, class="initial_focus") %]</td> |
|
31 |
</tr> |
|
32 |
<tr> |
|
33 |
<th>[% LxERP.t8('Printer Command') %]</th> |
|
34 |
<td>[% L.input_tag("printer.printer_command", SELF.printer.printer_command, size=30) %]</td> |
|
35 |
</tr> |
|
36 |
<tr> |
|
37 |
<th>[% LxERP.t8('Template Code') %]</th> |
|
38 |
<td>[% L.input_tag("printer.template_code", SELF.printer.template_code, size=8) %]</td> |
|
39 |
</tr> |
|
40 |
</tbody> |
|
41 |
</table> |
|
42 |
|
|
43 |
<div class="buttons"> |
|
44 |
<a href="[% SELF.url_for(action='list_printers', 'client.id'=SELF.client.id) %]" class="button neutral">[% LxERP.t8("Back") %]</a> |
|
45 |
[% L.submit_tag("action_save_printer", LxERP.t8("Save"), class="button") %] |
|
46 |
[% IF SELF.printer.id %] |
|
47 |
[% L.submit_tag("action_delete_printer", LxERP.t8("Delete"), confirm=LxERP.t8("Are you sure?")) %] |
|
48 |
[% END %] |
|
49 |
</div> |
|
49 | 50 |
|
50 | 51 |
</form> |
51 | 52 |
|
53 |
</div><!-- /.wrapper --> |
|
54 |
|
|
55 |
|
|
52 | 56 |
[% END %] |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/admin/edit_printer.html