diff options
author | Ermal Luçi <eri@pfsense.org> | 2013-05-29 23:58:16 -0700 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2013-05-29 23:58:16 -0700 |
commit | c2f351f3240231b19403bd0f9f54aabb82707065 (patch) | |
tree | 28a79cdce3c47d3562ea132cca845e659d2f5451 /usr/local/www | |
parent | 65c6b2e62a36686c114bef2d5c4a3941aa1af69c (diff) | |
parent | 2a7bfc1ff354c7cce5f11842667e63324497207f (diff) | |
download | pfsense-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')
-rw-r--r-- | usr/local/www/widgets/widgets/log.widget.php | 11 |
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 ?>" /> - + <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> |