[freeside-commits] freeside/httemplate/elements input-date-field.html, 1.1, 1.2
Mark Wells
mark at wavetail.420.am
Mon Oct 11 18:15:19 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv28988/httemplate/elements
Modified Files:
input-date-field.html
Log Message:
package contract end date field, RT#9918
Index: input-date-field.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/input-date-field.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- input-date-field.html 4 Sep 2010 02:19:03 -0000 1.1
+++ input-date-field.html 12 Oct 2010 01:15:17 -0000 1.2
@@ -1,8 +1,9 @@
-
+% if(!$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>
<SCRIPT TYPE="text/javascript" SRC="<%$fsurl%>elements/calendar-en.js"></SCRIPT>
<SCRIPT TYPE="text/javascript" SRC="<%$fsurl%>elements/calendar-setup.js"></SCRIPT>
+% }
<INPUT TYPE="text" NAME="<% $name %>" ID="<% $name %>_text" VALUE="<% $value %>">
<IMG SRC="<%$fsurl%>images/calendar.png" ID="<% $name %>_button" STYLE="cursor: pointer" TITLE="Select date">
@@ -18,13 +19,14 @@
<%init>
-my($name, $value, $format, $usedatetime);
+my($name, $value, $format, $usedatetime, $noinit);
if ( ref($_[0]) ) {
my $opt = shift;
$name = $opt->{'name'};
$value = $opt->{'value'};
$format = $opt->{'format'};
$usedatetime = $opt->{'usedatetime'};
+ $noinit = $opt->{'noinit'};
} else {
($name, $value, $format, $usedatetime) = @_;
}
More information about the freeside-commits
mailing list