diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-12-15 22:46:40 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-12-15 22:46:40 -0800 |
commit | 40a1ad133a19994311dc5a91b375d25aedd6d679 (patch) | |
tree | 4ceeb6aff46862e60c6d12c4bf114b1c83183066 /httemplate/elements/tr-input-date-field.html | |
parent | a7db5fbb81de9859db0fc9ccbd5236ee2a0dfe9f (diff) |
fix time in payment and credit back-dating, RT#32320
Diffstat (limited to 'httemplate/elements/tr-input-date-field.html')
-rw-r--r-- | httemplate/elements/tr-input-date-field.html | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/httemplate/elements/tr-input-date-field.html b/httemplate/elements/tr-input-date-field.html index 40162f0fd..ff9855184 100644 --- a/httemplate/elements/tr-input-date-field.html +++ b/httemplate/elements/tr-input-date-field.html @@ -26,7 +26,7 @@ Example: <TR> <TD ALIGN="right"><% $label %></TD> - <TD> + <TD COLSPAN=<% $colspan %>> <INPUT TYPE="text" NAME="<% $name %>" ID="<% $name %>_text" VALUE="<% $value %>"> <IMG SRC="<%$fsurl%>images/calendar.png" ID="<% $name %>_button" STYLE="cursor: pointer" TITLE="<% mt('Select date') |h %>"> </TD> @@ -38,12 +38,17 @@ Example: ifFormat: "<% $format %>", button: "<% $name %>_button", align: "BR" +% if ( $format =~ /\%r/ ) { + , + showsTime: true, + timeFormat: 12 +% } }); </SCRIPT> <%init> -my($name, $value, $label, $format, $usedatetime, $noinit); +my($name, $value, $label, $format, $usedatetime, $noinit, $colspan); if ( ref($_[0]) ) { my $opt = shift; $name = $opt->{'name'}; @@ -52,8 +57,10 @@ if ( ref($_[0]) ) { $format = $opt->{'format'}; $usedatetime = $opt->{'usedatetime'}; $noinit = $opt->{'noinit'}; + $colspan = $opt->{'colspan'} || 1; } else { ($name, $value, $label, $format, $usedatetime) = @_; + $colspan = 1; } my $conf = new FS::Conf; |