Preselect subnet in options if defined

master
Thomas Hooge 2 years ago
parent a4ecd1bff7
commit c13c7494bf
  1. 1
      assignnodetoasset.php
  2. 1
      nodeadd.php
  3. 2
      tpl/assignnodetoasset.tpl
  4. 2
      tpl/nodeadd.tpl

@ -17,6 +17,7 @@ include("header.php");
$smarty->assign("node_ip", $node_ip);
$smarty->assign("asset_id", $asset_id);
$smarty->assign("subnet_id", $subnet_id);
$query = "SELECT
asset_id,

@ -17,6 +17,7 @@ include("header.php");
$smarty->assign("user_dns1suffix", $_SESSION['suser_dns1suffix']);
$smarty->assign("user_dns2suffix", $_SESSION['suser_dns2suffix']);
$smarty->assign("node_ip", $node_ip);
$smarty->assign("subnet_id", $subnet_id);
$smarty->assign("subnet_options", $db->options_subnet());
$smarty->assign("assetclass_options", $db->options_assetclass());

@ -97,7 +97,7 @@
{$lang_subnet_subnetaddress}/{$lang_subnet_mask}
</td>
<td class="value">
{html_options name=subnet_id options=$subnet_options}
{html_options name=subnet_id options=$subnet_options selected=$subnet_id}
</td>
</tr>
</table>

@ -125,7 +125,7 @@
{$lang_subnet_subnetaddress}/{$lang_subnet_mask}
</td>
<td class="value">
{html_options name=subnet_id options=$subnet_options}
{html_options name=subnet_id options=$subnet_options selected=$subnet_id}
</td>
</tr>
</table>