summaryrefslogtreecommitdiff
path: root/httemplate/edit/cust_main/birthdate.html
blob: 6d1c221aa4c100ca09896d2bbe76cb5bfa7bfa32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<% ntable("#cccccc", 2) %>
% if ( $conf->exists('cust_main-enable_birthdate') ) {
  <% include( '/elements/tr-input-date-field.html', {
                'name'        => 'birthdate',
                'value'       => $cust_main->birthdate,
                'label'       => 'Date of Birth',
                'format'      => ( $conf->config('date_format') || "%m/%d/%Y" ),
                'usedatetime' => 1,
                'noinit'      => $noinit++,
            })
  %>
% }
% if ( $conf->exists('cust_main-enable_spouse_birthdate') ) {
  <% include( '/elements/tr-input-date-field.html', {
                'name'        => 'spouse_birthdate',
                'value'       => $cust_main->spouse_birthdate,
                'label'       => 'Spouse Date of Birth',
                'format'      => ( $conf->config('date_format') || "%m/%d/%Y" ),
                'usedatetime' => 1,
                'noinit'      => $noinit++,
            })
  %>
% }
</TABLE>
<%init>

my( $cust_main, %opt ) = @_;
my $conf = new FS::Conf;

my $noinit = 0;

</%init>