summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authorlevinse <levinse>2010-12-26 04:09:26 +0000
committerlevinse <levinse>2010-12-26 04:09:26 +0000
commit7353f670ef61e617a9dfb6c258907eb70e0345f6 (patch)
tree8edcaf56f44a9de5b7bbc5e76c0b7a6641480616 /httemplate/elements
parent50053b94beac4aef39ddc007c851184649d49564 (diff)
added basic LNP capability to svc_phone including SS, RT10948
Diffstat (limited to 'httemplate/elements')
-rw-r--r--httemplate/elements/select-lnp_status.html22
-rw-r--r--httemplate/elements/tr-input-date-field.html6
-rw-r--r--httemplate/elements/tr-select-lnp_status.html14
3 files changed, 40 insertions, 2 deletions
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 @@
+<SELECT NAME = "<% $opt{'element_name'} || $opt{'field'} || 'lnp_status' %>"
+ <% $opt{'element_etc'} %>
+>
+% unless ( $opt{'disable_empty'} ) {
+ <OPTION VALUE=""><% $opt{'empty_label'} || '' %></OPTION>
+% }
+% foreach my $selopt ( keys %seloptions ) {
+% my $selected = ($selopt eq $opt{'curr_value'}) ? 'SELECTED' : '';
+ <OPTION VALUE="<%$selopt%>" <% $selected %>><% $seloptions{$selopt} %></OPTION>
+% }
+</SELECT>
+<%init>
+
+my %opt = @_;
+
+my %seloptions = (
+ 'native' => 'Native',
+ 'portedin' => 'Ported In',
+ 'portingin' => 'Porting In',
+ 'portingout' => 'Porting Out',
+ );
+</%init>
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 ) {
<LINK REL="stylesheet" TYPE="text/css" HREF="<%$fsurl%>elements/calendar-win2k-2.css" TITLE="win2k-2">
<SCRIPT TYPE="text/javascript" SRC="<%$fsurl%>elements/calendar_stripped.js"></SCRIPT>
<SCRIPT TYPE="text/javascript" SRC="<%$fsurl%>elements/calendar-en.js"></SCRIPT>
<SCRIPT TYPE="text/javascript" SRC="<%$fsurl%>elements/calendar-setup.js"></SCRIPT>
+% }
<TR>
<TD ALIGN="right"><% $label %></TD>
@@ -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 @@
+ <TR>
+ <TD ALIGN="right"><% $opt{'label'} || 'LNP Status' %></TD>
+ <TD>
+ <% include('/elements/select-lnp_status.html',
+ 'curr_value' => $opt{'curr_value'},
+ )
+ %>
+ </TD>
+ </TR>
+<%init>
+
+my %opt = @_;
+
+</%init>