From 7353f670ef61e617a9dfb6c258907eb70e0345f6 Mon Sep 17 00:00:00 2001 From: levinse Date: Sun, 26 Dec 2010 04:09:26 +0000 Subject: added basic LNP capability to svc_phone including SS, RT10948 --- httemplate/elements/select-lnp_status.html | 22 ++++++++++++++++++++++ httemplate/elements/tr-input-date-field.html | 6 ++++-- httemplate/elements/tr-select-lnp_status.html | 14 ++++++++++++++ 3 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 httemplate/elements/select-lnp_status.html create mode 100644 httemplate/elements/tr-select-lnp_status.html (limited to 'httemplate/elements') diff --git a/httemplate/elements/select-lnp_status.html b/httemplate/elements/select-lnp_status.html new file mode 100644 index 000000000..f4910e0b6 --- /dev/null +++ b/httemplate/elements/select-lnp_status.html @@ -0,0 +1,22 @@ + +<%init> + +my %opt = @_; + +my %seloptions = ( + 'native' => 'Native', + 'portedin' => 'Ported In', + 'portingin' => 'Porting In', + 'portingout' => 'Porting Out', + ); + diff --git a/httemplate/elements/tr-input-date-field.html b/httemplate/elements/tr-input-date-field.html index ff4996faf..5400fcb80 100644 --- a/httemplate/elements/tr-input-date-field.html +++ b/httemplate/elements/tr-input-date-field.html @@ -1,8 +1,9 @@ - +% unless ( $noinit ) { +% } <% $label %> @@ -23,7 +24,7 @@ <%init> -my($name, $value, $label, $format, $usedatetime); +my($name, $value, $label, $format, $usedatetime, $noinit); if ( ref($_[0]) ) { my $opt = shift; $name = $opt->{'name'}; @@ -31,6 +32,7 @@ if ( ref($_[0]) ) { $label = $opt->{'label'}; $format = $opt->{'format'}; $usedatetime = $opt->{'usedatetime'}; + $noinit = $opt->{'noinit'}; } else { ($name, $value, $label, $format, $usedatetime) = @_; } diff --git a/httemplate/elements/tr-select-lnp_status.html b/httemplate/elements/tr-select-lnp_status.html new file mode 100644 index 000000000..a71e94bfa --- /dev/null +++ b/httemplate/elements/tr-select-lnp_status.html @@ -0,0 +1,14 @@ + + <% $opt{'label'} || 'LNP Status' %> + + <% include('/elements/select-lnp_status.html', + 'curr_value' => $opt{'curr_value'}, + ) + %> + + +<%init> + +my %opt = @_; + + -- cgit v1.2.1