[%- USE LxERP -%][%- USE HTML -%][%- USE L -%] [% INCLUDE 'common/flash.html' %] [% IF !SELF.all_clients.size %]
[% LxERP.t8("Error") %]: [% LxERP.t8("No clients have been created yet.") %]
[%- ELSE %]

[% HTML.escape(title) %]

[% L.hidden_tag("action", 'Admin/dispatch') %] [% L.hidden_tag("printer.id", SELF.printer.id) %]
[% LxERP.t8('Client') %] [% L.select_tag("client.id", SELF.all_clients, default=SELF.client.id, title_key='name') %]
[% LxERP.t8('Printer Description') %] [% L.input_tag("printer.printer_description", SELF.printer.printer_description, size=30, class="initial_focus") %]
[% LxERP.t8('Printer Command') %] [% L.input_tag("printer.printer_command", SELF.printer.printer_command, size=30) %]
[% LxERP.t8('Template Code') %] [% L.input_tag("printer.template_code", SELF.printer.template_code, size=8) %]

[% LxERP.t8("Back") %] [% L.submit_tag("action_save_printer", LxERP.t8("Save")) %] [%- IF SELF.printer.id %] [% L.submit_tag("action_delete_printer", LxERP.t8("Delete"), confirm=LxERP.t8("Are you sure?")) %] [%- END %]

[% END %]