Commit 39406886 authored by Franco Fichtner's avatar Franco Fichtner

interfaces: tweaks after table-layout changes

o Allow to delete WAN, LAN is worse :P
o Zap spurious 4th column
o Shorten assign text prompt
o remove margianlly helpful message
parent f44b7e0c
...@@ -404,7 +404,7 @@ include("head.inc"); ...@@ -404,7 +404,7 @@ include("head.inc");
<tr> <tr>
<th><?=gettext("Interface"); ?></th> <th><?=gettext("Interface"); ?></th>
<th><?=gettext("Network port"); ?></th> <th><?=gettext("Network port"); ?></th>
<th colspan="2"></th> <th></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
...@@ -426,22 +426,16 @@ include("head.inc"); ...@@ -426,22 +426,16 @@ include("head.inc");
</select> </select>
</td> </td>
<td> <td>
<?php
if ($ifname != 'wan'):?>
<button title="<?=gettext("delete interface");?>" data-toggle="tooltip" data-id="<?=$ifname;?>" class="btn btn-default act_delete" type="submit"> <button title="<?=gettext("delete interface");?>" data-toggle="tooltip" data-id="<?=$ifname;?>" class="btn btn-default act_delete" type="submit">
<span class="fa fa-trash text-muted"></span> <span class="fa fa-trash text-muted"></span>
</button> </button>
<?php
endif;?>
</td> </td>
</tr> </tr>
<?php <?php
endforeach; endforeach;
if (count($unused_interfaces) > 0):?> if (count($unused_interfaces) > 0):?>
<tr> <tr>
<td> <td><?= gettext('New interface:') ?></td>
<strong><?=gettext("Available network ports:");?></strong>
</td>
<td> <td>
<select name="if_add" id="if_add"> <select name="if_add" id="if_add">
<?php <?php
...@@ -458,9 +452,7 @@ include("head.inc"); ...@@ -458,9 +452,7 @@ include("head.inc");
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2"> <td colspan="2"></td>
<?= gettext('Interfaces that are configured as members of a LAGG interface will not be shown.') ?>
</td>
<td> <td>
<input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Save"); ?>" /> <input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Save"); ?>" />
</td> </td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment