projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
99c7d45
)
communigate (phase 2): add a textarea type to edit/part_svc so you can set it to...
author
ivan
<ivan>
Tue, 20 Apr 2010 04:29:17 +0000
(
04:29
+0000)
committer
ivan
<ivan>
Tue, 20 Apr 2010 04:29:17 +0000
(
04:29
+0000)
FS/FS/svc_domain.pm
patch
|
blob
|
history
httemplate/edit/part_svc.cgi
patch
|
blob
|
history
diff --git
a/FS/FS/svc_domain.pm
b/FS/FS/svc_domain.pm
index
2a24da4
..
c8af5a8
100644
(file)
--- a/
FS/FS/svc_domain.pm
+++ b/
FS/FS/svc_domain.pm
@@
-211,6
+211,8
@@
sub table_info {
'trailer' => {
label => 'Mail trailer',
type => 'textarea',
'trailer' => {
label => 'Mail trailer',
type => 'textarea',
+ disable_inventory => 1,
+ disable_select => 1,
},
'acct_def_cgp_language' => {
label => 'Acct. default language',
},
'acct_def_cgp_language' => {
label => 'Acct. default language',
diff --git
a/httemplate/edit/part_svc.cgi
b/httemplate/edit/part_svc.cgi
index
98ed9fe
..
6fe015a
100755
(executable)
--- a/
httemplate/edit/part_svc.cgi
+++ b/
httemplate/edit/part_svc.cgi
@@
-300,6
+300,12
@@
that field.
% } #endif
% $html .= '</SELECT>';
%
% } #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',
% } elsif ( $def->{type} eq 'select-svc_pbx.html' ) {
%
% $html .= include('/elements/select-svc_pbx.html',