/usr/share/zentyal/templates/network/wizard/network.mas is in zentyal-network 2.3.13+quantal1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | <%args>
@extifaces
@intifaces
</%args>
<%init>
use EBox::Gettext;
my @ifaces = ( @extifaces, @intifaces );
my $numExt = scalar @extifaces;
my $counter = 0;
# Set DCHP as default value if there is only one iface
my $selectedNotSet = 'selected';
my $selectedDHCP = '';
if (scalar @ifaces == 1) {
$selectedNotSet = '';
$selectedDHCP = 'selected';
}
</%init>
<script type="text/javascript">
changeState = function(iface) {
if ( $(iface + "_method").getValue() == 'static' ) {
$(iface + "_static").appear();
}
else {
$(iface + "_static").hide();
}
}
</script>
<h3><% __('Network interfaces') %></h3>
<form method="post" action="./Network/Wizard/Network" style="text-align: center">
<div><img src="/data/images/interfaces.png" /></div>
<h4><% __('Configure network for external interfaces') %></h4>
<div><% __('Now you can set IP addresses and networks for each interface') %></div>
% foreach my $iface ( @ifaces ) {
%
% # Limit internal ifaces options if there is any external
% my $limit = ($counter >= $numExt) && ($numExt > 0);
<div style="margin: 30px">
<table style="margin: 0 auto; text-align: left">
<tr>
<td><h3 style="text-align: left"><% $iface %></h3></td>
<td></td>
</tr>
<tr>
<td><% __('Method') %>:</td>
<td>
<select id='<% $iface %>_method' name='<% $iface %>_method' onchange="changeState('<% $iface %>')">
<option <% $selectedNotSet %> value='notset'><% __('Don\'t configure') %></option>
% unless ($limit) {
<option <% $selectedDHCP %> value='dhcp'>DHCP</option>
% }
<option value='static'>Static</option>
</select>
</td>
</tr>
<tbody id="<% $iface %>_static" style="display: none">
<tr>
<td><% __('IP address') %>:</td>
<td><input type='text' size='16' name="<% $iface %>_address" /></td>
</tr>
<tr>
<td><% __('Netmask') %>:</td>
<td>
<select name="<% $iface %>_netmask">
<option selected value='255.255.255.0'>255.255.255.0</option>
<option value='255.255.255.252'>255.255.255.252</option>
<option value='255.255.255.248'>255.255.255.248</option>
<option value='255.255.255.240'>255.255.255.240</option>
<option value='255.255.255.224'>255.255.255.224</option>
<option value='255.255.255.192'>255.255.255.192</option>
<option value='255.255.255.128'>255.255.255.128</option>
<option value='255.255.255.0'>255.255.255.0</option>
<option value="255.255.254.0">255.255.254.0</option>
<option value="255.255.252.0">255.255.252.0</option>
<option value="255.255.248.0">255.255.248.0</option>
<option value="255.255.240.0">255.255.240.0</option>
<option value="255.255.224.0">255.255.224.0</option>
<option value="255.255.192.0">255.255.192.0</option>
<option value="255.255.128.0">255.255.128.0</option>
<option value='255.255.0.0'>255.255.0.0</option>
<option value='255.0.0.0'>255.0.0.0</option>
</select>
</td>
</tr>
% unless ($limit) {
<tr>
<td><% __('Gateway') %>:</td>
<td><input type='text' size='16' name="<% $iface %>_gateway" /></td>
</tr>
<tr>
<td><% __('Domain Name Server') %> 1:</td>
<td><input type='text' size='16' name="<% $iface %>_dns1" /></td>
</tr>
<tr>
<td><% __('Domain Name Server') %> 2:</td>
<td><input type='text' size='16' name="<% $iface %>_dns2" /></td>
</tr>
% }
</tbody>
</table>
</div>
% $counter++;
% }
</form>
|