summaryrefslogtreecommitdiff
path: root/httemplate/edit/svc_circuit.cgi
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2014-11-27 16:12:56 -0800
committerMark Wells <mark@freeside.biz>2014-11-27 16:12:56 -0800
commit10614457fd7db63cbcc0bf9bfeebbbb99258eaa3 (patch)
tree27c9c1189627dda1ed9d0559376b761f6d02464f /httemplate/edit/svc_circuit.cgi
parent2d5acabf71d46aa469a6867f294706242c82db98 (diff)
svc_circuit, #23879, #25933, #30830
Diffstat (limited to 'httemplate/edit/svc_circuit.cgi')
-rw-r--r--httemplate/edit/svc_circuit.cgi54
1 files changed, 54 insertions, 0 deletions
diff --git a/httemplate/edit/svc_circuit.cgi b/httemplate/edit/svc_circuit.cgi
new file mode 100644
index 000000000..3f9bad5b1
--- /dev/null
+++ b/httemplate/edit/svc_circuit.cgi
@@ -0,0 +1,54 @@
+<& elements/svc_Common.html,
+ 'table' => 'svc_circuit',
+ 'fields' => \@fields,
+&>
+<%init>
+
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Provision customer service'); #something else more specific?
+
+my $conf = new FS::Conf;
+my $date_format = $conf->config('date_format') || '%m/%d/%Y';
+
+my @fields = (
+ { field => 'providernum',
+ type => 'select-table',
+ table => 'circuit_provider',
+ name_col => 'provider',
+ disable_empty => 1,
+ },
+ { field => 'typenum',
+ type => 'select-table',
+ table => 'circuit_type',
+ name_col => 'typename',
+ disable_empty => 1,
+ },
+ { field => 'termnum',
+ type => 'select-table',
+ table => 'circuit_termination',
+ name_col => 'termination',
+ disable_empty => 1,
+ },
+ { field => 'circuit_id',
+ size => 40,
+ },
+ { field => 'desired_due_date',
+ type => 'input-date-field',
+ },
+ { field => 'due_date',
+ type => 'input-date-field',
+ },
+ 'vendor_order_id',
+ 'vendor_qual_id',
+ 'vendor_order_status',
+ 'endpoint_ip_addr',
+ { field => 'endpoint_mac_addr',
+ type => 'input-mac_addr',
+ },
+);
+
+# needed: a new_callback to migrate vendor quals over to circuits
+
+#my ($svc_new_callback, $svc_edit_callback, $svc_error_callback);
+
+</%init>