render first_acct svc_acct._password fields are HTML password fields
[freeside.git] / httemplate / edit / cust_main / first_pkg / svc_acct.html
index b1ccc13..4ffd7ea 100644 (file)
@@ -1,11 +1,11 @@
-<% ntable("#cccccc") %>
+<TABLE CLASS="fsinnerbox">
 
   <TR>
-    <TD ALIGN="right"><% mt('Username') |h %></TD>
+    <TH ALIGN="right"><% mt('Username') |h %></TD>
     <TD>
       <INPUT TYPE      = "text"
              NAME      = "username"
-             VALUE     = "<% $opt{'username'} %>"
+             VALUE     = "<% $opt{'username'} |h %>"
              SIZE      = <% $ulen2 %>
              MAXLENGTH = <% $ulen %>
       >
@@ -13,7 +13,7 @@
   </TR>
 
   <TR>
-    <TD ALIGN="right"><% mt('Domain') |h %></TD>
+    <TH ALIGN="right"><% mt('Domain') |h %></TD>
     <TD>
       <SELECT NAME="domsvc">
         <OPTION>(<% mt('none') |h %>)</OPTION>
   </TR>
 
   <TR>
-    <TD ALIGN="right"><% mt('Password') |h %></TD>
+    <TH ALIGN="right"><% mt('Password') |h %></TD>
     <TD>
-      <INPUT TYPE      = "text"
+      <INPUT TYPE      = "password"
              NAME      = "_password"
-             VALUE     = "<% $opt{'password'} %>"
+             VALUE     = "<% $opt{'password'} |h %>"
              SIZE      = <% $pmax2 %>
              MAXLENGTH = <% $passwordmax %>>
 %     unless ( $opt{'password_verify'} ) {
 
 % if ( $opt{'password_verify'} ) {
     <TR>
-      <TD ALIGN="right"><% mt('Re-enter Password') |h %></TD>
+      <TH ALIGN="right"><% mt('Re-enter Password') |h %></TD>
       <TD>
-        <INPUT TYPE      = "text"
+        <INPUT TYPE      = "password"
                NAME      = "_password2"
-               VALUE     = "<% $opt{'password2'} %>"
+               VALUE     = "<% $opt{'password2'} |h %>"
                SIZE      = <% $pmax2 %>
                MAXLENGTH = <% $passwordmax %>>
       </TD>
@@ -50,8 +50,8 @@
 
 % if ( $conf->exists('security_phrase') ) {
     <TR>
-      <TD ALIGN="right"><% mt('Security Phrase') |h %></TD>
-      <TD><INPUT TYPE="text" NAME="sec_phrase" VALUE="<% $opt{'sec_phrase'} %>">
+      <TH ALIGN="right"><% mt('Security Phrase') |h %></TD>
+      <TD><INPUT TYPE="text" NAME="sec_phrase" VALUE="<% $opt{'sec_phrase'} |h %>">
       </TD>
     </TR>
 % } else {
@@ -62,7 +62,7 @@
     <INPUT TYPE="hidden" NAME="popnum" VALUE="">
 % } else {
     <TR>
-      <TD ALIGN="right"><% mt('Access number') |h %></TD>
+      <TH ALIGN="right"><% mt('Access number') |h %></TD>
 %#           XXX should gain "area code" selection and labels on the dropdowns
       <TD><% FS::svc_acct_pop::popselector($opt{'popnum'}) %></TD>
     </TR>
@@ -78,7 +78,7 @@ my $conf = new FS::Conf;
 
 my $ulen = dbdef->table('svc_acct')->column('username')->length;
 my $ulen2 = $ulen+2;
-my $passwordmax = $conf->config('passwordmax') || 8;
+my $passwordmax = $conf->config('passwordmax') || 12;
 my $pmax2 = $passwordmax + 2;
 
 </%init>