add spouse_birthdate, RT#17577
[freeside.git] / httemplate / edit / cust_main / birthdate.html
1 <% ntable("#cccccc", 2) %>
2 % if ( $conf->exists('cust_main-enable_birthdate') ) {
3   <% include( '/elements/tr-input-date-field.html', {
4                 'name'        => 'birthdate',
5                 'value'       => $cust_main->birthdate,
6                 'label'       => 'Date of Birth',
7                 'format'      => ( $conf->config('date_format') || "%m/%d/%Y" ),
8                 'usedatetime' => 1,
9                 'noinit'      => $noinit++,
10             })
11   %>
12 % }
13 % if ( $conf->exists('cust_main-enable_spouse_birthdate') ) {
14   <% include( '/elements/tr-input-date-field.html', {
15                 'name'        => 'spouse_birthdate',
16                 'value'       => $cust_main->spouse_birthdate,
17                 'label'       => 'Spouse Date of Birth',
18                 'format'      => ( $conf->config('date_format') || "%m/%d/%Y" ),
19                 'usedatetime' => 1,
20                 'noinit'      => $noinit++,
21             })
22   %>
23 % }
24 </TABLE>
25 <%init>
26
27 my( $cust_main, %opt ) = @_;
28 my $conf = new FS::Conf;
29
30 my $noinit = 0;
31
32 </%init>