Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
bdf66d49
Commit
bdf66d49
authored
Apr 01, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firewall: pimp schedule layout
parent
a818fb3f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
323 additions
and
336 deletions
+323
-336
firewall_schedule.php
src/www/firewall_schedule.php
+42
-43
firewall_schedule_edit.php
src/www/firewall_schedule_edit.php
+281
-293
No files found.
src/www/firewall_schedule.php
View file @
bdf66d49
...
@@ -114,11 +114,10 @@ $main_buttons = array(
...
@@ -114,11 +114,10 @@ $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>
...
@@ -246,13 +245,13 @@ $main_buttons = array(
...
@@ -246,13 +245,13 @@ $main_buttons = array(
<?php
<?php
$i
++
;
$i
++
;
endforeach
;
?>
endforeach
;
?>
<tr>
<td
colspan=
"4"
>
<?=
gettext
(
"Schedules act as placeholders for time ranges to be used in Firewall Rules."
);
?>
</td>
</tr>
</tbody>
</tbody>
</table>
</table>
</div>
<div
class=
"container-fluid"
>
<span
class=
"text-danger"
><strong>
<?=
gettext
(
"Note:"
);
?>
<br
/></strong></span>
<?=
gettext
(
"Schedules act as placeholders for time ranges to be used in Firewall Rules."
);
?>
</div>
</form>
</form>
</div>
</div>
</section>
</section>
...
...
src/www/firewall_schedule_edit.php
View file @
bdf66d49
...
@@ -780,10 +780,9 @@ function removeRow(el) {
...
@@ -780,10 +780,9 @@ function removeRow(el) {
<div
class=
"row"
>
<div
class=
"row"
>
<?php
if
(
isset
(
$input_errors
)
&&
count
(
$input_errors
)
>
0
)
print_input_errors
(
$input_errors
);
?>
<?php
if
(
isset
(
$input_errors
)
&&
count
(
$input_errors
)
>
0
)
print_input_errors
(
$input_errors
);
?>
<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_edit.php"
method=
"post"
name=
"iform"
id=
"iform"
>
<form
action=
"firewall_schedule_edit.php"
method=
"post"
name=
"iform"
id=
"iform"
>
<input
type=
"hidden"
name=
"schedlabel"
value=
"
<?=
$pconfig
[
'schedlabel'
];
?>
"
/>
<input
type=
"hidden"
name=
"schedlabel"
value=
"
<?=
$pconfig
[
'schedlabel'
];
?>
"
/>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped"
>
<table
class=
"table table-striped"
>
<tbody>
<tbody>
<tr>
<tr>
...
@@ -991,18 +990,8 @@ function removeRow(el) {
...
@@ -991,18 +990,8 @@ function removeRow(el) {
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td></td>
<th
colspan=
"2"
valign=
"top"
class=
"listtopic"
>
<?=
gettext
(
"Schedule repeat"
);
?>
</td>
<td></td>
</tr>
</tr>
</tbody>
</table>
<table
class=
"table table-striped"
>
<thead>
<tr>
<td
colspan=
"2"
valign=
"top"
class=
"listtopic"
>
<?=
gettext
(
"Schedule repeat"
);
?>
</td>
</tr>
</thead>
<tbody>
<tr>
<tr>
<td>
<?=
gettext
(
"Configured Ranges"
);
?>
</td>
<td>
<?=
gettext
(
"Configured Ranges"
);
?>
</td>
<td>
<td>
...
@@ -1170,7 +1159,6 @@ function removeRow(el) {
...
@@ -1170,7 +1159,6 @@ function removeRow(el) {
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
</div>
</form>
</form>
</div>
</div>
</section>
</section>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment