ef4b4eb46e6cc7c2b152eb18ec6c22a54dee190e
[freeside.git] / httemplate / misc / nms-add_iface.html
1 Adding interface <B><% $iface %></B> for <B><% $host %></B>
2 <BR>
3
4 <FORM NAME="nms-add_iface" ACTION="<% popurl(1) %>process/nms-add_iface.html" METHOD=POST>
5 Torrus Service Id
6 <% include('/elements/input-text.html',
7                     'field' => 'serviceid',
8           )
9 %>
10 <BR>
11 <INPUT TYPE="submit" NAME="submit" ID="submit_nms-add_iface" VALUE="Add Interface">
12 </FORM>
13
14 <%init>
15
16 # XXX: access rights, disable/enable submit button, something's wrong with style
17
18 my $host = $cgi->param('host'); 
19 die 'invalid host' unless $host =~ /^[0-9.a-zA-Z\-]+$/;
20
21 my $iface = $cgi->param('iface');
22 die 'invalid iface' unless $iface =~ /^[0-9A-Za-z_\-.]+$/;
23
24 </%init>