1 <% ntable("#cccccc", 2) %>
3 % # maybe put after the contact names?
5 % my $id_country = $conf->config('national_id-country');
7 % if ( $id_country eq 'MY' ) {
8 % my($old, $nric) = ( '', '');
9 % if ( $cust_main->national_id =~ /^\d{6}\-\d{2}\-\d{4}$/ ) {
10 % $nric = $cust_main->national_id;
11 % } else { # elsif ( $cust_main->national_id =~ /^\w\d{9}$/ ) {
12 % $old = $cust_main->national_id;
14 % # warn "unknown national_id format";
15 %# <INPUT TYPE="hidden" NAME="national_id0" VALUE="<% $cust_main->national_id |h %>">
18 <% include( '/elements/tr-input-text.html',
19 'field' => 'national_id1',
24 <% include( '/elements/tr-input-text.html',
25 'field' => 'national_id2',
27 'label' => 'Old IC/Passport',
32 % warn "unknown national_id-country $id_country";
36 % if ( $conf->exists('cust_main-enable_birthdate') ) {
37 <& /elements/tr-input-date-field.html, {
38 'name' => 'birthdate',
39 'value' => $cust_main->birthdate,
40 'label' => 'Date of Birth',
41 'format' => ( $conf->config('date_format') || "%m/%d/%Y" ),
43 'noinit' => $noinit++,
47 % if ( $conf->exists('cust_main-enable_spouse') ) {
48 <& /elements/tr-input-date-field.html, {
49 'name' => 'spouse_birthdate',
50 'value' => $cust_main->spouse_birthdate,
51 'label' => 'Spouse Date of Birth',
52 'format' => ( $conf->config('date_format') || "%m/%d/%Y" ),
54 'noinit' => $noinit++,
57 % } # if enable_spouse
58 % } # if enable_birthdate
60 % if ( $conf->exists('cust_main-enable_anniversary_date') ) {
61 <% include( '/elements/tr-input-date-field.html', {
62 'name' => 'anniversary_date',
63 'value' => $cust_main->anniversary_date,
64 'label' => 'Anniversary Date',
65 'format' => ( $conf->config('date_format') || "%m/%d/%Y" ),
67 'noinit' => $noinit++,
75 my( $cust_main, %opt ) = @_;
76 my $conf = new FS::Conf;