diff options
author | mark <mark> | 2010-10-12 01:15:17 +0000 |
---|---|---|
committer | mark <mark> | 2010-10-12 01:15:17 +0000 |
commit | 29472410e3b882a6a6b74fe48d28db411fe8fcff (patch) | |
tree | 727d1670a720d424ec2b5c5e3480657c992bcb44 /httemplate/misc | |
parent | fa5a1ac184e1fa9448453655b7e1f8e1297ef3b6 (diff) |
package contract end date field, RT#9918
Diffstat (limited to 'httemplate/misc')
-rw-r--r-- | httemplate/misc/order_pkg.html | 39 |
1 files changed, 18 insertions, 21 deletions
diff --git a/httemplate/misc/order_pkg.html b/httemplate/misc/order_pkg.html index e9a56b1a5..b232debd7 100644 --- a/httemplate/misc/order_pkg.html +++ b/httemplate/misc/order_pkg.html @@ -38,34 +38,19 @@ ) %> -%# false laziness w/edit/quick-charge.html <TR> <TH ALIGN="right">Start date </TD> <TD COLSPAN=6> - <INPUT TYPE = "text" - NAME = "start_date" - SIZE = 32 - ID = "start_date_text" - VALUE = "<% $start_date %>" - > - <IMG SRC = "../images/calendar.png" - ID = "start_date_button" - STYLE = "cursor: pointer" - TITLE = "Select date" - > + <% include('/elements/input-date-field.html',{ + 'name' => 'start_date', + 'format' => $date_format, + 'value' => $start_date, + 'noinit' => 1, + }) %> <FONT SIZE=-1>(leave blank to start immediately)</FONT> </TD> </TR> -<SCRIPT TYPE="text/javascript"> - Calendar.setup({ - inputField: "start_date_text", - ifFormat: "<% $date_format %>", - button: "start_date_button", - align: "BR" - }); -</SCRIPT> - % if ( $cust_main->payby =~ /^(CARD|CHEK)$/ ) { % my $what = lc(FS::payby->shortname($cust_main->payby)); <TR> @@ -99,6 +84,18 @@ ) %> +<TR> + <TH ALIGN="right">Contract end date </TD> + <TD COLSPAN=6> + <% include('/elements/input-date-field.html',{ + 'name' => 'contract_end', + 'format' => $date_format, + 'value' => '', + 'noinit' => 1, + }) %> + </TD> +</TR> + </TABLE> <% include( '/elements/standardize_locations.html', |