communigate (phase 2): add a textarea type to edit/part_svc so you can set it to...
authorivan <ivan>
Tue, 20 Apr 2010 04:29:12 +0000 (04:29 +0000)
committerivan <ivan>
Tue, 20 Apr 2010 04:29:12 +0000 (04:29 +0000)
FS/FS/svc_domain.pm
httemplate/edit/part_svc.cgi

index 2a24da4..c8af5a8 100644 (file)
@@ -211,6 +211,8 @@ sub table_info {
       'trailer' => {
         label => 'Mail trailer',
         type  => 'textarea',
+        disable_inventory => 1,
+        disable_select    => 1,
       },
       'acct_def_cgp_language' => {
                             label => 'Acct. default language',
index 98ed9fe..6fe015a 100755 (executable)
@@ -300,6 +300,12 @@ that field.
 %          } #endif
 %          $html .= '</SELECT>';
 %
+%        } elsif ( $def->{type} eq 'textarea' ) {
+%
+%          $html .=
+%            qq!<TEXTAREA NAME="${layer}__${field}">!. encode_entities($value).
+%            '</TEXTAREA>';
+%
 %        } elsif ( $def->{type} eq 'select-svc_pbx.html' ) {
 %
 %          $html .= include('/elements/select-svc_pbx.html',