projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DBConnect Caching: rollback nur bei Handles ohne AutoCommit
[kivitendo-erp.git]
/
templates
/
webpages
/
admin
/
edit_printer.html
diff --git
a/templates/webpages/admin/edit_printer.html
b/templates/webpages/admin/edit_printer.html
index
8e2f5a2
..
8553c53
100644
(file)
--- a/
templates/webpages/admin/edit_printer.html
+++ b/
templates/webpages/admin/edit_printer.html
@@
-2,17
+2,29
@@
[% INCLUDE 'common/flash.html' %]
[% INCLUDE 'common/flash.html' %]
+[% IF !SELF.all_clients.size %]
+<div class="error">
+ [% LxERP.t8("Error") %]:
+ [% LxERP.t8("No clients have been created yet.") %]
+</div>
+
+[%- ELSE %]
+
<h1>[% HTML.escape(title) %]</h1>
<form method="post">
<h1>[% HTML.escape(title) %]</h1>
<form method="post">
- [% L.hidden_tag("client.id", SELF.client.id) %]
[% L.hidden_tag("action", 'Admin/dispatch') %]
[% L.hidden_tag("printer.id", SELF.printer.id) %]
<table>
[% L.hidden_tag("action", 'Admin/dispatch') %]
[% L.hidden_tag("printer.id", SELF.printer.id) %]
<table>
+ <tr>
+ <th align="right">[% LxERP.t8('Client') %]</th>
+ <td>[% L.select_tag("client.id", SELF.all_clients, default=SELF.client.id, title_key='name') %]</td>
+ <tr>
+
<tr>
<th align="right">[% LxERP.t8('Printer Description') %]</th>
<tr>
<th align="right">[% LxERP.t8('Printer Description') %]</th>
- <td>[% L.input_tag("printer.printer_description", SELF.printer.printer_description, size=30) %]</td>
+ <td>[% L.input_tag("printer.printer_description", SELF.printer.printer_description, size=30
, class="initial_focus"
) %]</td>
<tr>
<tr>
<th align="right">[% LxERP.t8('Printer Command') %]</th>
<tr>
<tr>
<th align="right">[% LxERP.t8('Printer Command') %]</th>
@@
-33,3
+45,5
@@
</p>
</form>
</p>
</form>
+
+[% END %]