add anniversary date, RT#18631
[freeside.git] / httemplate / edit / cust_main / birthdate.html
1 <% ntable("#cccccc", 2) %>
2
3 % # maybe put after the contact names?
4
5 % if ( $conf->exists('cust_main-enable_birthdate') ) {
6   <% include( '/elements/tr-input-date-field.html', {
7                 'name'        => 'birthdate',
8                 'value'       => $cust_main->birthdate,
9                 'label'       => 'Date of Birth',
10                 'format'      => ( $conf->config('date_format') || "%m/%d/%Y" ),
11                 'usedatetime' => 1,
12                 'noinit'      => $noinit++,
13             })
14   %>
15 % }
16
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" ),
23                 'usedatetime' => 1,
24                 'noinit'      => $noinit++,
25             })
26   %>
27 % }
28
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" ),
35                 'usedatetime' => 1,
36                 'noinit'      => $noinit++,
37             })
38   %>
39 % }
40
41 </TABLE>
42 <%init>
43
44 my( $cust_main, %opt ) = @_;
45 my $conf = new FS::Conf;
46
47 my $noinit = 0;
48
49 </%init>