From: Bernd Bleßmann Date: Mon, 29 Jan 2018 12:22:46 +0000 (+0100) Subject: Wiederkehrende Rechnungen: Template als Popup-Dialog verwenden können. X-Git-Tag: release-3.5.4~492 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=4d20057d671c35239bf95af4221b2987e3fdc064;p=kivitendo-erp.git Wiederkehrende Rechnungen: Template als Popup-Dialog verwenden können. Dazu wird die Variable popup_dialog ausgewertet und es können js-Rückkehrfunktionen für Abbruch und Übernehmen übergeben werden. --- diff --git a/templates/webpages/oe/edit_periodic_invoices_config.html b/templates/webpages/oe/edit_periodic_invoices_config.html index 3e5b9b6bd..39a805ca6 100644 --- a/templates/webpages/oe/edit_periodic_invoices_config.html +++ b/templates/webpages/oe/edit_periodic_invoices_config.html @@ -2,7 +2,10 @@ [% USE LxERP %] [% USE L %] [% SET style="width: 400px" %] + +[%- IF !popup_dialog -%]

[% title %]

+[%- END -%]
@@ -135,12 +138,18 @@

(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') %] + [%- IF popup_dialog -%] + [% L.button_tag(popup_js_assign_function, LxERP.t8('Assign')) %] + [% L.button_tag(popup_js_close_function, LxERP.t8('Cancel')) %] -

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

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

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

+ [%- END -%]