diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-01-24 18:13:02 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-02-10 07:51:11 -0800 |
commit | 3be3e98fde6ea3d19e843551e960f77c41e2fba2 (patch) | |
tree | 2d31a15b404a5bf0734a07ff645b9847a4473dc1 /httemplate/elements | |
parent | 216b4b41bc9393568cc6737c4efe94960ed1d0d0 (diff) |
select a date when importing payments, RT#27087
Conflicts:
FS/FS/cust_pay.pm
Diffstat (limited to 'httemplate/elements')
-rw-r--r-- | httemplate/elements/tr-input-date-field.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/httemplate/elements/tr-input-date-field.html b/httemplate/elements/tr-input-date-field.html index 37a22e5df..40162f0fd 100644 --- a/httemplate/elements/tr-input-date-field.html +++ b/httemplate/elements/tr-input-date-field.html @@ -1,3 +1,22 @@ +<%doc> + +Example: + + <& /elements/tr-input_date-field, + { + 'name' => 'field_name', + 'value' => $current_value, + 'label' => 'Label', + + #optional + 'format' => '%m/%d/%Y', #overrides date_format config + 'usedatetime' => 1, #use DateTime->strftime to format the date + # instead of Date::Format->time2str + 'noinit' => 1, #first one on the page is enough + }, + &> + +</%doc> % unless ( $noinit ) { <LINK REL="stylesheet" TYPE="text/css" HREF="<%$fsurl%>elements/calendar-win2k-2.css" TITLE="win2k-2"> <SCRIPT TYPE="text/javascript" SRC="<%$fsurl%>elements/calendar_stripped.js"></SCRIPT> |