mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 16:14:21 +02:00
Added Notes widet
This commit is contained in:
@@ -0,0 +1,22 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
if( defined('show_settings') || empty($widget_settings) ) {
|
||||||
|
|
||||||
|
$common_output[] = '
|
||||||
|
<form class="form-horizontal" onsubmit="widget_settings(this); return false;">
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="'.$unique_id.'_notes" class="col-sm-1" control-label"></label>
|
||||||
|
<div class="col-sm-11">
|
||||||
|
<textarea name="notes" id="'.$unique_id.'_notes" rows="3" class="form-control">'.htmlspecialchars($widget_settings['notes']).'</textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="col-sm-1">
|
||||||
|
<button type="submit" class="btn btn-sm btn-primary">Set</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$common_output[] = stripslashes(nl2br($widget_settings['notes']));
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
INSERT INTO widgets VALUES (NULL, 'Notes', 'notes', '5,4');
|
||||||
Reference in New Issue
Block a user