diff options
Diffstat (limited to 'httemplate/elements/select-lnp_status.html')
-rw-r--r-- | httemplate/elements/select-lnp_status.html | 22 |
1 files changed, 22 insertions, 0 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> |