From 5058c99dba2ca85519c891465f86b4f3d7fcfce5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 14 Sep 2015 13:01:20 +0200 Subject: [PATCH] Bei Zahlungseingang heutiges Datum vorbelegen. --- bin/mozilla/is.pl | 1 + templates/webpages/is/_payments.html | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index dec398d58..84109cdd6 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -487,6 +487,7 @@ sub form_footer { show_delete => ($::instance_conf->get_is_changeable == 2) ? ($form->current_date(\%myconfig) eq $form->{gldate}) : ($::instance_conf->get_is_changeable == 1), + today => DateTime->today, }); ##print $form->parse_html_template('is/_payments'); # parser ##print $form->parse_html_template('webdav/_list'); # parser diff --git a/templates/webpages/is/_payments.html b/templates/webpages/is/_payments.html index 41b018615..e0da4e1a2 100644 --- a/templates/webpages/is/_payments.html +++ b/templates/webpages/is/_payments.html @@ -45,7 +45,11 @@ [% IF $changeable %] - [% L.date_tag('datepaid_'_ i, $datepaid) %] + [% IF $datepaid %] + [% L.date_tag('datepaid_'_ i, $datepaid) %] + [% ELSE %] + [% L.date_tag('datepaid_'_ i, today) %] + [% END %] [% ELSE %] [% $datepaid %] [% END %] -- 2.20.1