Option to ignore old CDRs, RT#81480
[freeside.git] / httemplate / elements / tr-input-mac_addr.html
1 <& /elements/tr-input-mask.html, 
2   format => '__:__:__:__:__:__',
3   allowed => '0123456789ABCDEFabcdef',
4   %opt,
5 &>
6 <%init>
7 my %opt = @_;
8 my $value = length($opt{curr_value}) ? $opt{curr_value} : $opt{value};
9 $value =~ s/\W//g;
10 $opt{curr_value} = join(':', $value =~ /../g);
11 </%init>