fix translation escaping
[freeside.git] / httemplate / elements / tr-cust_main-phones.html
1   <TR>
2     <TD ALIGN="right" VALIGN="top"><% emt('Phones') %></TD>
3     <TD COLSPAN=6>
4
5       <TABLE CELLSPACING=0 CELLPADDING=0>
6         <TR>
7           <TD>
8             <INPUT TYPE="text" NAME="<%$pre%>daytime" VALUE="<% $cust_main->get($pre.'daytime') %>" SIZE=18 onChange="<% $onchange %>" <%$disabled%> <%$style%>>
9             <BR><FONT SIZE=-1><% $daytime_label |h %></FONT>
10           </TD>
11           <TD>&nbsp;</TD>
12           <TD>
13             <INPUT TYPE="text" NAME="<%$pre%>night" VALUE="<% $cust_main->get($pre.'night') %>" SIZE=18 onChange="<% $onchange %>" <%$disabled%> <%$style%>>
14             <BR><FONT SIZE=-1><% $night_label |h %></FONT>
15           </TD>
16           <TD>&nbsp;</TD>
17           <TD>
18             <INPUT TYPE="text" NAME="<%$pre%>mobile" VALUE="<% $cust_main->get($pre.'mobile') %>" SIZE=18 onChange="<% $onchange %>" <%$disabled%> <%$style%>>
19             <BR><FONT SIZE=-1><% $mobile_label |h %></FONT>
20           </TD>
21         </TR>
22       </TABLE>
23     </TD>
24   </TR>
25 <%init>
26
27 my $daytime_label = FS::Msgcat::_gettext('daytime') =~ /^(daytime)?$/
28                       ? 'Day'
29                       : FS::Msgcat::_gettext('daytime');
30 my $night_label   = FS::Msgcat::_gettext('night') =~/^(night)?$/
31                       ? 'Night'
32                       : FS::Msgcat::_gettext('night') || 'Night';
33 my $mobile_label = FS::Msgcat::_gettext('mobile') =~/^(mobile)?$/
34                       ? 'Mobile'
35                       : FS::Msgcat::_gettext('mobile') || 'Mobile';
36
37 my %opt = @_;
38
39 my $pre       = $opt{'prefix'};
40 my $cust_main = $opt{'cust_main'};
41 my $onchange  = $opt{'onchange'};
42 my $disabled  = $opt{'disabled'};
43 my $style     = $opt{'style'};
44
45 </%init>