add anniversary date, RT#18631
[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
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
26 % if ( $conf->exists('cust_main-enable_anniversary_date') ) {
27   <% include( '/elements/tr-input-date-field.html', {
28                 'name'        => 'anniversary_date',
29                 'value'       => $cust_main->anniversary_date,
30                 'label'       => 'Anniversary Date',
31                 'format'      => ( $conf->config('date_format') || "%m/%d/%Y" ),
32                 'usedatetime' => 1,
33                 'noinit'      => $noinit++,
34             })
35   %>
36 % }
37
38 </TABLE>
39 <%init>
40
41 my( $cust_main, %opt ) = @_;
42 my $conf = new FS::Conf;
43
44 my $noinit = 0;
45
46 </%init>