fix translation escaping
[freeside.git] / httemplate / elements / searchbar-address2.html
1 % if ( $conf->exists('address2-search') ) { 
2
3   <FORM ACTION="<%$fsurl%>search/cust_main.cgi" METHOD="GET" STYLE="margin:0;display:inline">
4     <INPUT TYPE="hidden" NAME="address2_on" VALUE="1">
5     <INPUT NAME="address2_text" TYPE="text" VALUE="<% $address2_label |n %>" STYLE="width:67px" onFocus="clearhint_search_address2(this);" onClick="clearhint_search_address2(this);" CLASS="fstext">
6     <BR>
7     <INPUT TYPE="submit" VALUE="<% mt("Search units") |h %>" CLASS="fsblackbutton" onMouseOver="this.className='fsblackbuttonselected'; return true;" onMouseOut="this.className='fsblackbutton'; return true;" STYLE="font-size:11px;padding-left:1px;padding-right:1px;margin-top:3px">
8   </FORM>
9   <% $menu_position eq 'left' ? '<BR>' : '' |n %>
10
11 % } 
12
13 <SCRIPT TYPE="text/javascript">
14
15   function clearhint_search_address2 (what) {
16     if ( what.value == '<% $address2_label |n %>' )
17       what.value = '';
18   }
19
20 </SCRIPT>
21 <%once>
22
23 my $address2_label = mt('(Unit #)');
24
25 </%once>
26 <%init> 
27
28 my $conf = new FS::Conf;
29
30 my $curuser = $FS::CurrentUser::CurrentUser;
31
32 my $menu_position = $curuser->option('menu_position') || 'top';
33
34 </%init>