Commit bdf66d49 authored by Franco Fichtner's avatar Franco Fichtner

firewall: pimp schedule layout

parent a818fb3f
...@@ -114,33 +114,32 @@ $main_buttons = array( ...@@ -114,33 +114,32 @@ $main_buttons = array(
<div class="row"> <div class="row">
<?php if (isset($savemsg)) print_info_box($savemsg); ?> <?php if (isset($savemsg)) print_info_box($savemsg); ?>
<section class="col-xs-12"> <section class="col-xs-12">
<div class="content-box content-box-main "> <div class="content-box tab-content">
<form action="firewall_schedule.php" method="post" name="iform" id="iform"> <form action="firewall_schedule.php" method="post" name="iform" id="iform">
<input type="hidden" id="id" name="id" value="" /> <input type="hidden" id="id" name="id" value="" />
<input type="hidden" id="action" name="act" value="" /> <input type="hidden" id="action" name="act" value="" />
<div class="table-responsive"> <table class="table table-striped">
<table class="table table-striped"> <thead>
<thead> <tr>
<tr> <td><?=gettext("Name");?></td>
<td><?=gettext("Name");?></td> <td><?=gettext("Time Range(s)");?></td>
<td><?=gettext("Time Range(s)");?></td> <td><?=gettext("Description");?></td>
<td><?=gettext("Description");?></td> <td></td>
<td></td> </tr>
</tr> </thead>
</thead> <tbody>
<tbody> <?php $i = 0; foreach ($a_schedules as $schedule): ?>
<?php $i = 0; foreach ($a_schedules as $schedule): ?> <tr ondblclick="document.location='firewall_schedule_edit.php?id=<?=$i;?>';">
<tr ondblclick="document.location='firewall_schedule_edit.php?id=<?=$i;?>';"> <td>
<td> <?=$schedule['name'];?>
<?=$schedule['name'];?>
<?php <?php
if (filter_get_time_based_rule_status($schedule)):?> if (filter_get_time_based_rule_status($schedule)):?>
<span data-toggle="tooltip" title="<?=gettext("Schedule is currently active");?>" class="fa fa-clock-o"></span> <span data-toggle="tooltip" title="<?=gettext("Schedule is currently active");?>" class="fa fa-clock-o"></span>
<?php <?php
endif;?> endif;?>
</td> </td>
<td> <td>
<table class="table table-condensed table-striped"> <table class="table table-condensed table-striped">
<?php <?php
foreach($schedule['timerange'] as $timerange) { foreach($schedule['timerange'] as $timerange) {
$firstprint = false; $firstprint = false;
...@@ -227,32 +226,32 @@ $main_buttons = array( ...@@ -227,32 +226,32 @@ $main_buttons = array(
?><tr><td><?=$dayFriendly;?></td><td><?=$timeFriendly;?></td><td><?=$description;?></td></tr><?php ?><tr><td><?=$dayFriendly;?></td><td><?=$timeFriendly;?></td><td><?=$description;?></td></tr><?php
} }
}//end for?></table> }//end for?></table>
</td> </td>
<td> <td>
<?=$schedule['descr'];?> <?=$schedule['descr'];?>
</td> </td>
<td> <td>
<a href="firewall_schedule_edit.php?id=<?=$i;?>" data-toggle="tooltip" title="<?=gettext("edit schedule");?>" class="btn btn-default btn-xs"> <a href="firewall_schedule_edit.php?id=<?=$i;?>" data-toggle="tooltip" title="<?=gettext("edit schedule");?>" class="btn btn-default btn-xs">
<span class="glyphicon glyphicon-pencil"></span> <span class="glyphicon glyphicon-pencil"></span>
</a> </a>
<a id="del_<?=$i;?>" title="<?=gettext("delete schedule"); ?>" data-toggle="tooltip" class="act_delete btn btn-default btn-xs"> <a id="del_<?=$i;?>" title="<?=gettext("delete schedule"); ?>" data-toggle="tooltip" class="act_delete btn btn-default btn-xs">
<span class="fa fa-trash text-muted"></span> <span class="fa fa-trash text-muted"></span>
</a> </a>
<a href="firewall_schedule.php?dup=<?=$i;?>" class="btn btn-default btn-xs" data-toggle="tooltip" title="<?=gettext("clone schedule");?>"> <a href="firewall_schedule.php?dup=<?=$i;?>" class="btn btn-default btn-xs" data-toggle="tooltip" title="<?=gettext("clone schedule");?>">
<span class="fa fa-clone text-muted"></span> <span class="fa fa-clone text-muted"></span>
</a> </a>
</td> </td>
</tr> </tr>
<?php <?php
$i++; $i++;
endforeach; ?> endforeach; ?>
</tbody> <tr>
</table> <td colspan="4">
</div> <?=gettext("Schedules act as placeholders for time ranges to be used in Firewall Rules.");?>
<div class="container-fluid"> </td>
<span class="text-danger"><strong><?=gettext("Note:");?><br /></strong></span> </tr>
<?=gettext("Schedules act as placeholders for time ranges to be used in Firewall Rules.");?> </tbody>
</div> </table>
</form> </form>
</div> </div>
</section> </section>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment