+
+
+
+ |
+ From date (m/d/y) |
+ To date (m/d/y) |
+ Empty date |
+
+% my $noinit = 0;
% foreach my $field (@date_fields) {
-
- <% $label{$field} %> |
-
-
- <% include( '/elements/tr-input-beginning_ending.html',
- prefix => $field,
- layout => 'horiz',
- )
- %>
-
- |
-
-
-% }
+
+ <% $label{$field} %> |
+% foreach (qw(beginning ending)) {
+
+ <& /elements/input-date-field.html, {
+ 'name' => $field.'_'.$_,
+ 'value' => '',
+ 'noinit' => $noinit,
+ 'format' => '%m/%d/%Y',
+ } &>
+ |
+% $noinit = 1;
+% }
+
+ <& /elements/checkbox.html,
+ 'field' => $field.'_null',
+ 'value' => 'Y',
+ 'onchange' => $field.'_null_changed',
+ &>
+ |
+
+% } #foreach $field
+
+ |
+
- <% include( '/elements/tr-checkbox.html',
+ <& /elements/tr-checkbox.html,
'label' => 'Custom packages',
'field' => 'custom',
'value' => 1,
'onchange' => 'custom_changed(this);',
- )
- %>
+ &>
- <% include( '/elements/tr-selectmultiple-part_pkg.html' ) %>
+ <& /elements/tr-selectmultiple-part_pkg.html &>
-