1 <% ntable("#cccccc", 2) %>
3 % # maybe put after the contact names?
5 % if ( $conf->exists('cust_main-enable_birthdate') ) {
6 <% include( '/elements/tr-input-date-field.html', {
8 'value' => $cust_main->birthdate,
9 'label' => 'Date of Birth',
10 'format' => ( $conf->config('date_format') || "%m/%d/%Y" ),
12 'noinit' => $noinit++,
17 % if ( $conf->exists('cust_main-enable_spouse_birthdate') ) {
18 <% include( '/elements/tr-input-date-field.html', {
19 'name' => 'spouse_birthdate',
20 'value' => $cust_main->spouse_birthdate,
21 'label' => 'Spouse Date of Birth',
22 'format' => ( $conf->config('date_format') || "%m/%d/%Y" ),
24 'noinit' => $noinit++,
29 % if ( $conf->exists('cust_main-enable_anniversary_date') ) {
30 <% include( '/elements/tr-input-date-field.html', {
31 'name' => 'anniversary_date',
32 'value' => $cust_main->anniversary_date,
33 'label' => 'Anniversary Date',
34 'format' => ( $conf->config('date_format') || "%m/%d/%Y" ),
36 'noinit' => $noinit++,
44 my( $cust_main, %opt ) = @_;
45 my $conf = new FS::Conf;