summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2013-05-29 23:58:16 -0700
committerErmal Luçi <eri@pfsense.org>2013-05-29 23:58:16 -0700
commitc2f351f3240231b19403bd0f9f54aabb82707065 (patch)
tree28a79cdce3c47d3562ea132cca845e659d2f5451 /usr/local/www/widgets
parent65c6b2e62a36686c114bef2d5c4a3941aa1af69c (diff)
parent2a7bfc1ff354c7cce5f11842667e63324497207f (diff)
downloadpfsense-c2f351f3240231b19403bd0f9f54aabb82707065.zip
pfsense-c2f351f3240231b19403bd0f9f54aabb82707065.tar.gz
Merge pull request #660 from CharlieMarshall/firewall_log_widget
change interface text entry box to drop down menu
Diffstat (limited to 'usr/local/www/widgets')
-rw-r--r--usr/local/www/widgets/widgets/log.widget.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/usr/local/www/widgets/widgets/log.widget.php b/usr/local/www/widgets/widgets/log.widget.php
index 64a02fa..ebcf06b 100644
--- a/usr/local/www/widgets/widgets/log.widget.php
+++ b/usr/local/www/widgets/widgets/log.widget.php
@@ -147,8 +147,15 @@ function format_log_line(row) {
<input id="actreject" name="actreject" type="checkbox" value="Reject" <?php if (in_arrayi('Reject', $Include_Act)) echo "checked=\"checked\""; ?> /> Reject
<br/>
Interfaces:
- <input id="filterlogentriesinterfaces" name="filterlogentriesinterfaces" class="formfld unknown" type="text" size="20" value="<?= $nentriesinterfaces ?>" />
- &nbsp; &nbsp; &nbsp;
+ <select id="filterlogentriesinterfaces" name="filterlogentriesinterfaces" class="formselect">
+ <?php
+ $interfaces = get_configured_interface_with_descr();
+ foreach ($interfaces as $iface => $ifacename): ?>
+ <option value="<?=$iface;?>" <?php if (!link_interface_to_bridge($iface) && $iface == $if) echo "selected"; ?>>
+ <?=htmlspecialchars($ifacename);?>
+ </option>
+ <?php endforeach; ?>
+ </select>
<input id="submita" name="submita" type="submit" class="formbtn" value="Save" />
</form>
OpenPOWER on IntegriCloud