Add Device Notes Field #1927

Merged
merged 2 commits into from Sep 17, 2015

Projects

None yet

3 participants

@Rosiak
Contributor
Rosiak commented Sep 17, 2015

Add a “Notes” field for devices to accommodate #1897

@Rosiak Rosiak Add Device Notes Field
Add a “Notes” field for devices to accommodate #1897
62328da
@f0o f0o commented on an outdated diff Sep 17, 2015
html/pages/device/notes.inc.php
+ * option) any later version. Please see LICENSE.txt at the top level of
+ * the source code distribution for details.
+ */
+
+$data = dbFetchRow("SELECT `notes` FROM `devices` WHERE device_id = ?", array(
+ $device['device_id']
+));
+?>
+
+<form class="form-horizontal" action="" method="post">
+ <h3>Device Notes</h3>
+ <hr>
+ <div class="form-group">
+ <div class="col-sm-10">
+ <textarea class="form-control" rows="6" name="notes" id="device-notes"><?php
+echo $data['notes']; ?></textarea>
@f0o
f0o Sep 17, 2015 Member

please use htmlentities($data['notes'])

@f0o f0o self-assigned this Sep 17, 2015
@Rosiak Rosiak Use htmlentities
ff7e1f5
@f0o f0o merged commit f3f0eee into librenms:master Sep 17, 2015

2 checks passed

Auto-Deploy Build finished. No test results found.
Details
Scrutinizer No new issues
Details
@Rosiak Rosiak deleted the Rosiak:device-notes branch Feb 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment