Revision 46d8071e
Added by Scott Ullrich almost 15 years ago
usr/local/www/interfaces_assign.php | ||
---|---|---|
425 | 425 |
<tr> |
426 | 426 |
<td class="listlr" valign="middle"><strong><?=$ifdescr;?></strong></td> |
427 | 427 |
<td valign="middle" class="listr"> |
428 |
<select name="<?=$ifname;?>" id="<?=$ifname;?>"> |
|
428 |
<select onChange="javascript:$('savediv').appear();" name="<?=$ifname;?>" id="<?=$ifname;?>">
|
|
429 | 429 |
<?php foreach ($portlist as $portname => $portinfo): ?> |
430 |
<option value="<?=$portname;?>" <?php if ($portname == $iface['if']) echo " selected";?>> |
|
430 |
<option value="<?=$portname;?>" <?php if ($portname == $iface['if']) echo " selected";?>>
|
|
431 | 431 |
<?php if ($portinfo['isvlan']) { |
432 | 432 |
$descr = sprintf(gettext("VLAN %s on %s"),$portinfo['tag'],$portinfo['if']); |
433 | 433 |
if ($portinfo['descr']) |
... | ... | |
490 | 490 |
</table> |
491 | 491 |
</div> |
492 | 492 |
<br/> |
493 |
<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>"><br><br> |
|
494 |
<p> |
|
493 |
<div name='savediv' id='savediv' style='display:none;'> |
|
494 |
<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>"><br><br> |
|
495 |
<p> |
|
496 |
</div> |
|
495 | 497 |
</p> |
496 | 498 |
<ul> |
497 | 499 |
<li><span class="vexpl"><?=gettext("change the IP address of your computer"); ?></span></li> |
Also available in: Unified diff
Hide Save button until a drop down onChange event occurs