diff options
author | Mark Wells <mark@freeside.biz> | 2012-11-30 16:21:34 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2012-11-30 16:21:34 -0800 |
commit | b474400512cb725399e57d52383d0a0c407690b0 (patch) | |
tree | d15f3b0a7d8bd04849222d032857cdaf47d8395d /httemplate/edit/elements/part_export | |
parent | a2a69f909cad813d7164bae805e87f5874a9fdae (diff) |
styling fixes, #16588
Diffstat (limited to 'httemplate/edit/elements/part_export')
-rw-r--r-- | httemplate/edit/elements/part_export/broadband_snmp.html | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/httemplate/edit/elements/part_export/broadband_snmp.html b/httemplate/edit/elements/part_export/broadband_snmp.html index 8df0b8e02..4c0367c5a 100644 --- a/httemplate/edit/elements/part_export/broadband_snmp.html +++ b/httemplate/edit/elements/part_export/broadband_snmp.html @@ -46,7 +46,7 @@ function receive_mib(obj, rownum) { //console.log(JSON.stringify(obj)); // we don't really need the numeric OID or any of the other properties document.getElementById('oid'+rownum).value = obj.fullname; - document.getElementById('datatype'+rownum).innerHTML = obj.type; + document.getElementById('datatype'+rownum).value = obj.type; } </script> @@ -69,7 +69,7 @@ function receive_mib(obj, rownum) { <INPUT NAME="oid" ID="oid" SIZE="60" onclick="open_select_mib(this)"> </TD> <TD> - <SPAN ID="datatype"></SPAN> + <INPUT TYPE="text" NAME="datatype" ID="datatype" READONLY=1> </TD> <TD> <INPUT NAME="value" ID="value"> @@ -77,10 +77,10 @@ function receive_mib(obj, rownum) { </TR> <& /elements/auto-table.html, template_row => 'mytemplate', - fieldorder => ['action', 'oid', 'value'], + fieldorder => ['action', 'oid', 'datatype', 'value'], data => \@data, &> -<INPUT TYPE="hidden" NAME="multi_options" VALUE="action,oid,value"> +<INPUT TYPE="hidden" NAME="multi_options" VALUE="action,oid,datatype,value"> <& foot.html, %opt &> <%init> my %opt = @_; @@ -88,11 +88,12 @@ my $part_export = $opt{part_export} || FS::part_export->new; my @actions = split("\n", $part_export->option('action')); my @oids = split("\n", $part_export->option('oid')); +my @types = split("\n", $part_export->option('datatype')); my @values = split("\n", $part_export->option('value')); my @data; while (@actions or @oids or @values) { - my @thisrow = (shift(@actions), shift(@oids), shift(@values)); + my @thisrow = (shift(@actions), shift(@oids), shift(@types), shift(@values)); push @data, \@thisrow if grep length($_), @thisrow; } |