From 5c9f445b375ecf56e453de2c783f11e1c572dccb Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Thu, 10 Mar 2016 01:20:21 -0800 Subject: add svc_fiber circuit id field, OLT sites, and other improvements, #35260 --- httemplate/elements/tr-input-fiber_circuit.html | 31 +++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 httemplate/elements/tr-input-fiber_circuit.html (limited to 'httemplate/elements') diff --git a/httemplate/elements/tr-input-fiber_circuit.html b/httemplate/elements/tr-input-fiber_circuit.html new file mode 100644 index 000000000..fb6462bb6 --- /dev/null +++ b/httemplate/elements/tr-input-fiber_circuit.html @@ -0,0 +1,31 @@ +<& /elements/tr-td-label.html, %opt &> + + + + + + + + + + +
FDU#FAT# + + Port#
+ + +<%doc> +Supports a circuit ID of the form +FDU# (digit), FAT# (digit), SubFAT (letter), Port# (numeric) +May support other formats in the future, or just a free text field. + +<%init> +my %opt = @_; +my $value = length($opt{curr_value}) ? $opt{curr_value} : $opt{value}; +my ($fdu, $fat, $port) = split('/', $value); +my $subfat = ''; +if ( $fat =~ /[A-Z]$/i ) { + $subfat = substr($fat, -1, 1, ''); +} +my $field = $opt{'field'} || 'circuit_id'; + -- cgit v1.2.1