summaryrefslogtreecommitdiff
path: root/httemplate/misc/nms-add_iface.html
blob: 11456f2e8315928fb3ff3040a983892fe3f25509 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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>
<INPUT TYPE="HIDDEN" name="iface" value="<%$iface%>">
<INPUT TYPE="HIDDEN" name="host" value="<%$host%>">
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>