summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authorivan <ivan>2011-10-30 20:58:47 +0000
committerivan <ivan>2011-10-30 20:58:47 +0000
commit2543cd5e16887a7976649e8f23818b64f397d2a6 (patch)
tree84a87f3ba252cf3634daeeee5bafd588f98dfa71 /httemplate/edit
parent6f24b5f61c2afbc4f4749cc83517b6ef11c2cc83 (diff)
add svc_dsl.gateway_access_number
Diffstat (limited to 'httemplate/edit')
-rw-r--r--httemplate/edit/svc_dsl.cgi13
1 files changed, 11 insertions, 2 deletions
diff --git a/httemplate/edit/svc_dsl.cgi b/httemplate/edit/svc_dsl.cgi
index 989564e74..1aeadb376 100644
--- a/httemplate/edit/svc_dsl.cgi
+++ b/httemplate/edit/svc_dsl.cgi
@@ -24,11 +24,16 @@ my $html_foot = sub { "
function ikano_loop_type_changed() {
var loop_type = document.getElementById('loop_type').value;
var phonenum = document.getElementById('phonenum');
+ var gateway_access_number = document.getElementById('gateway_access_number');
if(loop_type == '0') {
phonenum.value = '';
phonenum.disabled = true;
+ gateway_access_number.value = '';
+ gateway_access_number.disabled = true;
+ } else {
+ phonenum.disabled = false;
+ gateway_access_number.disabled = false;
}
- else phonenum.disabled = false;
}
</SCRIPT>
"; };
@@ -58,7 +63,7 @@ my $edit_cb = sub {
# else add any other export-specific stuff here
}
else {
- push @fields, qw( first last company phonenum circuitnum rate_band vpi vci );
+ push @fields, qw( first last company phonenum gateway_access_number circuitnum rate_band vpi vci );
}
};
@@ -123,6 +128,10 @@ my $new_cb = sub {
{ field => 'phonenum',
value => $phonenum,
};
+ { field => 'gateway_access_number',
+ value => '',
+ };
+
}