X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Foe%2Fedit_periodic_invoices_config.html;h=ebe5985bd7f5e6e324311335cc0b79fa889c1f98;hb=d281eedf12fcb699ebddbaa8395d6f15a06cff1f;hp=656dc43260cc0ec636ad30f1be5e74c9a71907cd;hpb=5534d9cb025cc4036f6fcce28a24c5e5b164641e;p=kivitendo-erp.git diff --git a/templates/webpages/oe/edit_periodic_invoices_config.html b/templates/webpages/oe/edit_periodic_invoices_config.html index 656dc4326..ebe5985bd 100644 --- a/templates/webpages/oe/edit_periodic_invoices_config.html +++ b/templates/webpages/oe/edit_periodic_invoices_config.html @@ -23,7 +23,7 @@ [%- LxERP.t8('Billing Periodicity') %] - [% L.select_tag("periodicity", [ [ "m", LxERP.t8("monthly") ], [ "q", LxERP.t8("every third month") ], [ "b", LxERP.t8("semiannually") ], [ "y", LxERP.t8("yearly") ] ], default=periodicity, style=style) %] + [% L.select_tag("periodicity", [ [ "o", LxERP.t8("one time") ], [ "m", LxERP.t8("monthly") ], [ "q", LxERP.t8("every third month") ], [ "b", LxERP.t8("semiannually") ], [ "y", LxERP.t8("yearly") ] ], default=periodicity, style=style) %] @@ -73,6 +73,11 @@ + [%- LxERP.t8('direct debit') %] + [% L.checkbox_tag("direct_debit", checked=direct_debit) %] + + + [%- LxERP.t8('Print automatically') %] [% L.checkbox_tag("print", onclick => "toggle_printer_id_ctrl()", checked => print) %] @@ -90,6 +95,36 @@ [%- LxERP.t8('Copies') %] [% L.input_tag("copies", copies, size => 6, disabled => !print) %] + + + [%- LxERP.t8("Send invoice via email") %] + [% L.checkbox_tag("send_email", onclick => "toggle_send_email_ctrl()", checked=send_email) %] + + + + [%- LxERP.t8("Contact to send to") %] + [% L.select_tag("email_recipient_contact_id", ALL_CONTACTS, title_key="full_name_dep", value_key="cp_id", default=email_recipient_contact_id, with_empty=1, disabled=!send_email, style=style) %] + + + + [%- LxERP.t8("Other recipients") %]3 + [% L.input_tag("email_recipient_address", email_recipient_address, disabled=!send_email, style=style) %] + + + + [%- LxERP.t8("Sender") %]4 + [% L.input_tag("email_sender", email_sender, disabled=!send_email, style=style) %] + + + + [%- LxERP.t8("Subject") %] + [% L.input_tag("email_subject", email_subject, disabled=!send_email, style=style) %] + + + + [%- LxERP.t8("Message") %] + [% L.textarea_tag("email_body", email_body, disabled=!send_email, rows=8, style=style) %] +

@@ -97,6 +132,8 @@

(1): [%- LxERP.t8('The end date is the last day for which invoices will possibly be created.') %]

(2): [% LxERP.t8("If missing then the start date will be used.") %]

+

(3): [% LxERP.t8("Multiple addresses can be entered separated by commas.") %]

+

(4): [% LxERP.t8("If left empty the default sender from the kivitendo configuration will be used (key 'email_from' in section 'periodic_invoices'; current value: #1).", HTML.escape(LXCONFIG.periodic_invoices.email_from)) %]

[% L.hidden_tag('action', 'save_periodic_invoices_config') %] @@ -113,5 +150,14 @@ $('#printer_id').prop('disabled', disabled); $('#copies').prop('disabled', disabled); } + + function toggle_send_email_ctrl() { + var disabled = !$('#send_email').prop('checked'); + $('#email_recipient_contact_id').prop('disabled', disabled); + $('#email_recipient_address').prop('disabled', disabled); + $('#email_sender').prop('disabled', disabled); + $('#email_subject').prop('disabled', disabled); + $('#email_body').prop('disabled', disabled); + } -->