% }
% if ( $conf->exists('cust_main-enable_birthdate') ) {
- <% include( '/elements/tr-input-date-field.html', {
- 'name' => 'birthdate',
- 'value' => $cust_main->birthdate,
- 'label' => 'Date of Birth',
- 'format' => ( $conf->config('date_format') || "%m/%d/%Y" ),
- 'usedatetime' => 1,
- 'noinit' => $noinit++,
- })
- %>
-% }
+ <& /elements/tr-input-date-field.html, {
+ 'name' => 'birthdate',
+ 'value' => $cust_main->birthdate,
+ 'label' => 'Date of Birth',
+ 'format' => ( $conf->config('date_format') || "%m/%d/%Y" ),
+ 'usedatetime' => 1,
+ 'noinit' => $noinit++,
+ }
+ &>
-% if ( $conf->exists('cust_main-enable_spouse_birthdate') ) {
- <% include( '/elements/tr-input-date-field.html', {
- 'name' => 'spouse_birthdate',
- 'value' => $cust_main->spouse_birthdate,
- 'label' => 'Spouse Date of Birth',
- 'format' => ( $conf->config('date_format') || "%m/%d/%Y" ),
- 'usedatetime' => 1,
- 'noinit' => $noinit++,
- })
- %>
-% }
+% if ( $conf->exists('cust_main-enable_spouse') ) {
+ <& /elements/tr-input-date-field.html, {
+ 'name' => 'spouse_birthdate',
+ 'value' => $cust_main->spouse_birthdate,
+ 'label' => 'Spouse Date of Birth',
+ 'format' => ( $conf->config('date_format') || "%m/%d/%Y" ),
+ 'usedatetime' => 1,
+ 'noinit' => $noinit++,
+ }
+ &>
+% } # if enable_spouse
+% } # if enable_birthdate
% if ( $conf->exists('cust_main-enable_anniversary_date') ) {
<% include( '/elements/tr-input-date-field.html', {