summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-10-24 20:10:29 -0700
committerIvan Kohler <ivan@freeside.biz>2013-10-24 20:10:29 -0700
commitdfbfe2c0a30fe1d99b9d852b8e96a84bf101aff1 (patch)
treecbac3b365a2d3691617489cdb5f0528a0b1e23ed
parenta739906dfe203b5432ba3e489bcc25f99259bba7 (diff)
selectable choice for arbitrary fields, RT#25623
-rw-r--r--httemplate/edit/elements/svc_Common.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/httemplate/edit/elements/svc_Common.html b/httemplate/edit/elements/svc_Common.html
index 321c68545..64484eba0 100644
--- a/httemplate/edit/elements/svc_Common.html
+++ b/httemplate/edit/elements/svc_Common.html
@@ -121,6 +121,11 @@
$f->{'hashref'} = {
'classnum'=>$columndef->columnvalue
};
+ } elsif ( $flag eq 'S' ) { #selectable choice
+ $f->{type} = 'select';
+ $f->{options} = [ split( /\s*,\s*/,
+ $columndef->columnvalue)
+ ];
}
if ( $f->{'type'} eq 'select-svc_pbx'