mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-03 00:11:49 +02:00
Merge pull request #151 from laf/issue-150
Visually updated delete host page
This commit is contained in:
+24
-15
@@ -23,12 +23,16 @@ if (is_numeric($_REQUEST['id']))
|
|||||||
print_error("Are you sure you want to delete device " . $device['hostname'] . "?");
|
print_error("Are you sure you want to delete device " . $device['hostname'] . "?");
|
||||||
?>
|
?>
|
||||||
<br />
|
<br />
|
||||||
<form name="form1" method="post" action="">
|
<form name="form1" method="post" action="" class="form-horizontal" role="form">
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="col-sm-4">
|
||||||
<input type="hidden" name="id" value="<?php echo $_REQUEST['id'] ?>" />
|
<input type="hidden" name="id" value="<?php echo $_REQUEST['id'] ?>" />
|
||||||
<input type="hidden" name="confirm" value="1" />
|
<input type="hidden" name="confirm" value="1" />
|
||||||
<!--<input type="hidden" name="remove_rrd" value="<?php echo $_POST['remove_rrd']; ?>">-->
|
<!--<input type="hidden" name="remove_rrd" value="<?php echo $_POST['remove_rrd']; ?>">-->
|
||||||
<input type="submit" class="submit" name="Submit" value="Confirm host deletion" />
|
<button type="submit" class="btn btn-default">Confirm host deletion</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -36,12 +40,16 @@ else
|
|||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form name="form1" method="post" action="">
|
<form name="form1" method="post" action="" class="form-horizontal" role="form">
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="col-sm-offset-2 col-sm-7">
|
||||||
<?php print_error("Warning, this will remove the device from being monitered and if selected, all data will be removed as well!");?>
|
<?php print_error("Warning, this will remove the device from being monitered and if selected, all data will be removed as well!");?>
|
||||||
<table border="0">
|
</div>
|
||||||
<tr>
|
</div>
|
||||||
<td>Device: </td>
|
<div class="form-group">
|
||||||
<td><select name="id">
|
<label for="id" class="col-sm-2 control-label">Device:</label>
|
||||||
|
<div class="col-sm-7">
|
||||||
|
<select name="id" class="form-control" id="id">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
@@ -51,17 +59,18 @@ foreach (dbFetchRows("SELECT * FROM `devices` ORDER BY `hostname`") as $data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</select></td>
|
</select>
|
||||||
</tr>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
<!-- <tr>
|
<!-- <tr>
|
||||||
<td>Remove RRDs (Data files): </td>
|
<td>Remove RRDs (Data files): </td>
|
||||||
<td><input type="checkbox" name="remove_rrd" value="yes"></td>
|
<td><input type="checkbox" name="remove_rrd" value="yes"></td>
|
||||||
</tr>-->
|
</tr>-->
|
||||||
<tr>
|
<div class="col-sm-offset-2 col-sm-8">
|
||||||
<td colspan="2"><input id="confirm" type="hidden" name="confirm" value="0" />
|
<input id="confirm" type="hidden" name="confirm" value="0" />
|
||||||
<input id="confirm_delete" type="submit" class="submit" name="Submit" value="Delete Device" /></td>
|
<button id="confirm_delete" type="submit" class="btn btn-default">Delete Device</button>
|
||||||
</tr>
|
</div>
|
||||||
</table>
|
|
||||||
</form>
|
</form>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user