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