diff options
author | levinse <levinse> | 2011-01-28 02:49:15 +0000 |
---|---|---|
committer | levinse <levinse> | 2011-01-28 02:49:15 +0000 |
commit | 1e37402a96397fe344c32e0abf7434b4b595ea49 (patch) | |
tree | 6a5ce979f53686c9467c6e404c82032fb6946008 /httemplate/misc/nms-add_iface.html | |
parent | 25e6733121bd27638a1b15f6365f63cc5c17f5ab (diff) |
torrus, RT10574
Diffstat (limited to 'httemplate/misc/nms-add_iface.html')
-rw-r--r-- | httemplate/misc/nms-add_iface.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/httemplate/misc/nms-add_iface.html b/httemplate/misc/nms-add_iface.html new file mode 100644 index 000000000..ab4cb178b --- /dev/null +++ b/httemplate/misc/nms-add_iface.html @@ -0,0 +1,24 @@ +Adding interface <B><% $iface %></B> for <B><% $host %></B> +<BR> + +<FORM NAME="nms-add_iface" ACTION="<% popurl(1) %>process/nms-add_iface.html" METHOD=POST> +Torrus Service Id +<% include('/elements/input-text.html', + 'field' => 'serviceid', + ) +%> +<BR> +<INPUT TYPE="submit" NAME="submit" ID="submit_nms-add_iface" VALUE="Add Interface"> +</FORM> + +<%init> + +# XXX: access rights, disable/enable submit button, something's wrong with style + +my $host = $cgi->param('host'); +die 'invalid host' unless $host =~ /^[0-9.a-zA-Z\-]+$/; + +my $iface = $cgi->param('iface'); +die 'invalid iface' unless $iface =~ /^[0-9A-Za-z_]+$/; + +</%init> |