don't show drag message if roworderdragging is disabled

(cherry picked from commit fd4dc22e73)
This commit is contained in:
luckman212 2018-09-25 01:04:03 -04:00 committed by Renato Botelho
parent b09f48fb1c
commit 04a9cd686c

View File

@ -328,6 +328,12 @@ if (isset($config['interfaces'][$if]['blockbogons'])) {
$showblockbogons = true;
}
if (isset($config['system']['webgui']['roworderdragging'])) {
$rules_header_text = 'Rules';
} else {
$rules_header_text = 'Rules (Drag to Change Order)';
}
/* Load the counter data of each pf rule. */
$rulescnt = pfSense_get_pf_rules();
@ -347,7 +353,7 @@ $columns_in_table = 13;
<form method="post">
<input name="if" id="if" type="hidden" value="<?=$if?>" />
<div class="panel panel-default">
<div class="panel-heading"><h2 class="panel-title"><?=gettext("Rules (Drag to Change Order)")?></h2></div>
<div class="panel-heading"><h2 class="panel-title"><?=gettext($rules_header_text)?></h2></div>
<div id="mainarea" class="table-responsive panel-body">
<table id="ruletable" class="table table-hover table-striped table-condensed" style="overflow-x: 'visible'">
<thead>