[% USE HTML %] [% USE LxERP %] [% USE L %]
[% title %]

[%- LxERP.t8('Active') %] [% L.checkbox_tag("active", checked => active) %]
[%- LxERP.t8('Periodicity') %] [% L.radio_button_tag("periodicity", value => "m", label => LxERP.t8("monthly"), checked => periodicity == 'm') %]
[% L.radio_button_tag("periodicity", value => "q", label => LxERP.t8("quarterly"), checked => periodicity == 'q') %]
[% L.radio_button_tag("periodicity", value => "y", label => LxERP.t8("yearly"), checked => periodicity == 'y') %]
[%- LxERP.t8('Start date') %] [% L.date_tag("start_date", start_date) %]
[%- LxERP.t8('Record in') %] [% L.select_tag("ar_chart_id", L.options_for_select(AR, title => 'description', default => ar_chart_id)) %]
[%- LxERP.t8('Print automatically') %] [% L.checkbox_tag("print", onclick => "toggle_printer_id_ctrl()", checked => print) %]
[%- LxERP.t8('Printer') %] [% L.select_tag("printer_id", L.options_for_select(ALL_PRINTERS, title => 'printer_description', default => printer_id), disabled => !print) %]
[%- LxERP.t8('Copies') %] [% L.input_tag("copies", copies, size => 6, disabled => !print) %]

[% L.hidden_tag('action', 'save_periodic_invoices_config') %]

[% L.submit_tag('', LxERP.t8('Close')) %] [% L.submit_tag('', LxERP.t8('Cancel'), onclick => "self.close(); return false;") %]