summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorivan <ivan>2011-10-30 20:58:51 +0000
committerivan <ivan>2011-10-30 20:58:51 +0000
commitb218c7e7a70ab56ae878b8456c61050f80af77f8 (patch)
tree8631440cb8a7003842ec3484166ed84e50cd0071 /httemplate
parent52a76bd23975ac0aeeb9f141e4f80153e0a2eb84 (diff)
add svc_dsl.gateway_access_number
Diffstat (limited to 'httemplate')
-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 => '',
+ };
+
}