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
654def3e
Commit
654def3e
authored
May 27, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(trafficshaper) add initial rule setup to shaper UI
parent
afa6209b
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
165 additions
and
41 deletions
+165
-41
IndexController.php
...pp/controllers/OPNsense/TrafficShaper/IndexController.php
+3
-0
dialogRule.xml
...p/controllers/OPNsense/TrafficShaper/forms/dialogRule.xml
+44
-0
index.volt
src/opnsense/mvc/app/views/OPNsense/TrafficShaper/index.volt
+118
-41
No files found.
src/opnsense/mvc/app/controllers/OPNsense/TrafficShaper/IndexController.php
View file @
654def3e
...
...
@@ -37,7 +37,10 @@ class IndexController extends \OPNsense\Base\IndexController
public
function
indexAction
()
{
$this
->
view
->
title
=
"Traffic Shaper"
;
// include dialog form definitions
$this
->
view
->
formDialogPipe
=
$this
->
getForm
(
"dialogPipe"
);
$this
->
view
->
formDialogRule
=
$this
->
getForm
(
"dialogRule"
);
// choose template
$this
->
view
->
pick
(
'OPNsense/TrafficShaper/index'
);
}
}
src/opnsense/mvc/app/controllers/OPNsense/TrafficShaper/forms/dialogRule.xml
0 → 100644
View file @
654def3e
<form>
<field>
<id>
rule.sequence
</id>
<label>
sequence
</label>
<type>
text
</type>
<help>
order in which the rule will be evaluated
</help>
</field>
<field>
<id>
rule.interface
</id>
<label>
interface
</label>
<type>
text
</type>
<help></help>
</field>
<field>
<id>
rule.proto
</id>
<label>
proto
</label>
<type>
dropdown
</type>
<help></help>
</field>
<field>
<id>
rule.source
</id>
<label>
source
</label>
<type>
text
</type>
<help></help>
</field>
<field>
<id>
rule.destination
</id>
<label>
destination
</label>
<type>
text
</type>
<help></help>
</field>
<field>
<id>
rule.target
</id>
<label>
target
</label>
<type>
dropdown
</type>
<help></help>
</field>
<field>
<id>
rule.description
</id>
<label>
description
</label>
<type>
text
</type>
<help></help>
</field>
</form>
\ No newline at end of file
src/opnsense/mvc/app/views/OPNsense/TrafficShaper/index.volt
View file @
654def3e
This diff is collapsed.
Click to expand it.
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