diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-11-11 15:48:29 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-11-11 15:48:29 -0500 |
commit | 270de3df711fa7178cae03e7ba11e960e61e4adb (patch) | |
tree | 1c92293d8f61b233718e6dff9d070fa594ee3abf | |
parent | 04fd7017726efe152e37a847f74719238bb0a1bf (diff) | |
download | pfsense-270de3df711fa7178cae03e7ba11e960e61e4adb.zip pfsense-270de3df711fa7178cae03e7ba11e960e61e4adb.tar.gz |
Fixed #5420
by adding new "Add to top of list" button.
Also tidied up the HTML and moved the legend inside hte info-block
-rw-r--r-- | src/usr/local/www/firewall_rules.php | 45 |
1 files changed, 25 insertions, 20 deletions
diff --git a/src/usr/local/www/firewall_rules.php b/src/usr/local/www/firewall_rules.php index 7d5fb4d..073e0c1 100644 --- a/src/usr/local/www/firewall_rules.php +++ b/src/usr/local/www/firewall_rules.php @@ -649,48 +649,53 @@ for ($i = 0; isset($a_filter[$i]); $i++): <?php endif;?> <nav class="action-buttons"> - <a href="firewall_rules_edit.php?if=<?=htmlspecialchars($if);?>" role="button" class="btn btn-sm btn-success"> - <i class="fa fa-plus icon-embed-btn"></i> + <a href="firewall_rules_edit.php?if=<?=htmlspecialchars($if);?>&after=-1" role="button" class="btn btn-sm btn-success" title="<?=gettext('Add rule to the top of the list')?>"> + <i class="fa fa-level-up icon-embed-btn"></i> <?=gettext("Add");?> </a> - <button name="del_x" type="submit" class="btn btn-danger btn-sm" value="<?=gettext("Delete selected rules"); ?>"> + <a href="firewall_rules_edit.php?if=<?=htmlspecialchars($if);?>" role="button" class="btn btn-sm btn-success" title="<?=gettext('Add rule to the end of the list')?>"> + <i class="fa fa-level-down icon-embed-btn"></i> + <?=gettext("Add");?> + </a> + <button name="del_x" type="submit" class="btn btn-danger btn-sm" value="<?=gettext("Delete selected rules"); ?>" title="<?=gettext('Delete selected rules')?>"> <i class="fa fa-trash icon-embed-btn"></i> <?=gettext("Delete"); ?> </button> - <button type="submit" id="order-store" name="order-store" class="btn btn-sm btn-primary" value="store changes" disabled="disabled"> + <button type="submit" id="order-store" name="order-store" class="btn btn-sm btn-primary" value="store changes" disabled="disabled" title="<?=gettext('Save rule order')?>"> <i class="fa fa-save icon-embed-btn"></i> <?=gettext("Save")?> </button> </nav> </form> -<!-- Legend --> -<div> - <dl class="dl-horizontal responsive"> - <dt><?=gettext('Legend')?></dt> <dd></dd> - <dt><i class="icon icon-ok"></i></dt> <dd><?=gettext("pass");?></dd> - <dt><i class="icon icon-filter"></i></dt> <dd><?=gettext("match");?></dd> - <dt><i class="icon icon-remove"></i></dt> <dd><?=gettext("block");?></dd> - <dt><i class="icon icon-fire"></i></dt> <dd><?=gettext("reject");?></dd> - <dt><i class="icon icon-tasks"></i></dt> <dd> <?=gettext("log");?></dd> - <dt><i class="icon icon-cog"></i></dt> <dd> <?=gettext("advanced filter");?></dd> - </dl> -</div> <div id="infoblock"> + <div class="alert alert-info clearfix" role="alert"><button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button><div class="pull-left"> + <dl class="dl-horizontal responsive"> + <!-- Legend --> + <dt><?=gettext('Legend')?></dt> <dd></dd> + <dt><i class="icon icon-ok"></i></dt> <dd><?=gettext("pass");?></dd> + <dt><i class="icon icon-filter"></i></dt> <dd><?=gettext("match");?></dd> + <dt><i class="icon icon-remove"></i></dt> <dd><?=gettext("block");?></dd> + <dt><i class="icon icon-fire"></i></dt> <dd><?=gettext("reject");?></dd> + <dt><i class="icon icon-tasks"></i></dt> <dd> <?=gettext("log");?></dd> + <dt><i class="icon icon-cog"></i></dt> <dd> <?=gettext("advanced filter");?></dd> + </dl> + <?php if ("FloatingRules" != $if) - print_info_box(gettext("Rules are evaluated on a first-match basis (i.e. " . + print(gettext("Rules are evaluated on a first-match basis (i.e. " . "the action of the first rule to match a packet will be executed). ") . '<br />' . gettext("This means that if you use block rules, you'll have to pay attention " . "to the rule order. Everything that isn't explicitly passed is blocked " . - "by default. "), info); + "by default. ")); else - print_info_box(gettext("Floating rules are evaluated on a first-match basis (i.e. " . + print(gettext("Floating rules are evaluated on a first-match basis (i.e. " . "the action of the first rule to match a packet will be executed) only " . "if the 'quick' option is checked on a rule. Otherwise they will only match if no " . "other rules match. Pay close attention to the rule order and options " . - "chosen. If no rule here matches, the per-interface or default rules are used. "), info); + "chosen. If no rule here matches, the per-interface or default rules are used. ")); ?> + </div> </div> <script> |